Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 489:21ab22a60bcb
Auto-convert a roster item to "room" type when receiving a groupchat message
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 07 Oct 2005 20:12:11 +0200 |
parents | 4a10c04ac2fb |
children | 3f5aa4852684 |
comparison
equal
deleted
inserted
replaced
488:9e8519078e00 | 489:21ab22a60bcb |
---|---|
796 | 796 |
797 // This is a user | 797 // This is a user |
798 return (gpointer)((GSList*)roster_usr->list)->data; | 798 return (gpointer)((GSList*)roster_usr->list)->data; |
799 } | 799 } |
800 | 800 |
801 void buddy_settype(gpointer rosterdata, guint type) | |
802 { | |
803 roster *roster_usr = rosterdata; | |
804 roster_usr->type = type; | |
805 } | |
806 | |
801 guint buddy_gettype(gpointer rosterdata) | 807 guint buddy_gettype(gpointer rosterdata) |
802 { | 808 { |
803 roster *roster_usr = rosterdata; | 809 roster *roster_usr = rosterdata; |
804 return roster_usr->type; | 810 return roster_usr->type; |
805 } | 811 } |