Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 644:68fb0c1dfb15
MUC: better nickname check when entering a room
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 05 Jan 2006 20:20:57 +0100 |
parents | 028c01940490 |
children | 3ad6675caaf1 |
comparison
equal
deleted
inserted
replaced
643:dd73c3dad815 | 644:68fb0c1dfb15 |
---|---|
59 gchar *name; | 59 gchar *name; |
60 gchar *jid; | 60 gchar *jid; |
61 guint type; | 61 guint type; |
62 enum subscr subscription; | 62 enum subscr subscription; |
63 GSList *resource; | 63 GSList *resource; |
64 gchar *nickname; // For groupchats | 64 |
65 gchar *topic; // For groupchats | 65 /* For groupchats */ |
66 gchar *nickname; | |
67 gchar *topic; | |
68 guint8 inside_room; | |
69 | |
70 /* Flag used for the UI */ | |
66 guint flags; | 71 guint flags; |
72 | |
67 // list: user -> points to his group; group -> points to its users list | 73 // list: user -> points to his group; group -> points to its users list |
68 GSList *list; | 74 GSList *list; |
69 } roster; | 75 } roster; |
70 | 76 |
71 | 77 |
831 { | 837 { |
832 roster *roster_usr = rosterdata; | 838 roster *roster_usr = rosterdata; |
833 return roster_usr->nickname; | 839 return roster_usr->nickname; |
834 } | 840 } |
835 | 841 |
842 // buddy_setinsideroom(buddy, inside) | |
843 // Only for chatrooms | |
844 void buddy_setinsideroom(gpointer rosterdata, guint8 inside) | |
845 { | |
846 roster *roster_usr = rosterdata; | |
847 | |
848 if (!(roster_usr->type & ROSTER_TYPE_ROOM)) return; | |
849 | |
850 roster_usr->inside_room = inside; | |
851 } | |
852 | |
853 guint8 buddy_getinsideroom(gpointer rosterdata) | |
854 { | |
855 roster *roster_usr = rosterdata; | |
856 return roster_usr->inside_room; | |
857 } | |
858 | |
836 // buddy_settopic(buddy, newtopic) | 859 // buddy_settopic(buddy, newtopic) |
837 // Only for chatrooms | 860 // Only for chatrooms |
838 void buddy_settopic(gpointer rosterdata, const char *newtopic) | 861 void buddy_settopic(gpointer rosterdata, const char *newtopic) |
839 { | 862 { |
840 roster *roster_usr = rosterdata; | 863 roster *roster_usr = rosterdata; |