diff 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
line wrap: on
line diff
--- a/mcabber/src/roster.c	Sun Aug 26 22:23:30 2007 +0200
+++ b/mcabber/src/roster.c	Tue Aug 28 10:11:39 2007 +0200
@@ -867,6 +867,8 @@
 
 const char *buddy_getjid(gpointer rosterdata)
 {
+  if (!rosterdata)
+    return NULL;
   roster *roster_usr = rosterdata;
   return roster_usr->jid;
 }
@@ -1270,7 +1272,7 @@
 // Look for a buddy with specified jid.
 // Search begins at buddylist; if no match is found in the the buddylist,
 // return NULL;
-GList *buddy_search_jid(char *jid)
+GList *buddy_search_jid(const char *jid)
 {
   GList *buddy;
   roster *roster_usr;