Mercurial > hg
comparison mcabber/src/roster.c @ 1292:382ec54b584e
Muc nick coloring functionality
author | Michal 'vorner' Vaner <vorner@ucw.cz> |
---|---|
date | Tue, 28 Aug 2007 10:11:39 +0200 |
parents | 2de8f8ba1f34 |
children | 0dda8238af21 |
comparison
equal
deleted
inserted
replaced
1291:9f64f548ac16 | 1292:382ec54b584e |
---|---|
865 roster_usr->flags &= ~ROSTER_FLAG_HIDE; | 865 roster_usr->flags &= ~ROSTER_FLAG_HIDE; |
866 } | 866 } |
867 | 867 |
868 const char *buddy_getjid(gpointer rosterdata) | 868 const char *buddy_getjid(gpointer rosterdata) |
869 { | 869 { |
870 if (!rosterdata) | |
871 return NULL; | |
870 roster *roster_usr = rosterdata; | 872 roster *roster_usr = rosterdata; |
871 return roster_usr->jid; | 873 return roster_usr->jid; |
872 } | 874 } |
873 | 875 |
874 // buddy_setgroup() | 876 // buddy_setgroup() |
1268 | 1270 |
1269 // buddy_search_jid(jid) | 1271 // buddy_search_jid(jid) |
1270 // Look for a buddy with specified jid. | 1272 // Look for a buddy with specified jid. |
1271 // Search begins at buddylist; if no match is found in the the buddylist, | 1273 // Search begins at buddylist; if no match is found in the the buddylist, |
1272 // return NULL; | 1274 // return NULL; |
1273 GList *buddy_search_jid(char *jid) | 1275 GList *buddy_search_jid(const char *jid) |
1274 { | 1276 { |
1275 GList *buddy; | 1277 GList *buddy; |
1276 roster *roster_usr; | 1278 roster *roster_usr; |
1277 | 1279 |
1278 if (!buddylist) return NULL; | 1280 if (!buddylist) return NULL; |