mcabber/src/roster.c
changeset 92 c6270994fb6e
parent 90 ac48ace7ee19
child 119 d7fbd5293385
--- a/mcabber/src/roster.c	Mon Apr 18 18:12:50 2005 +0000
+++ b/mcabber/src/roster.c	Mon Apr 18 18:33:24 2005 +0000
@@ -201,8 +201,9 @@
   roster *roster_usr;
 
   sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT);
+  // If we can't find it, we add it
   if (sl_user == NULL)
-    return;
+    sl_user = roster_add_user(jid, NULL, NULL, ROSTER_TYPE_USER);
 
   roster_usr = (roster*)sl_user->data;
   roster_usr->status = bstat;