diff mcabber/src/hooks.c @ 1355:9716cf8a0726

Add on_server flag Add a flag to the roster data, TRUE if the roster item is known by the server. The command /info displays a message if the item is local.
author Mikael Berthe <mikael@lilotux.net>
date Sat, 10 Nov 2007 23:15:16 +0100
parents 61a54e172010
children 7bbfb0073f88
line wrap: on
line diff
--- a/mcabber/src/hooks.c	Sat Nov 10 23:15:05 2007 +0100
+++ b/mcabber/src/hooks.c	Sat Nov 10 23:15:16 2007 +0100
@@ -88,7 +88,7 @@
   roster_usr = roster_find(bjid, jidsearch, 0);
   if (!roster_usr) {
     new_guy = TRUE;
-    roster_usr = roster_add_user(bjid, NULL, NULL, rtype, sub_none);
+    roster_usr = roster_add_user(bjid, NULL, NULL, rtype, sub_none, -1);
     if (!roster_usr) { // Shouldn't happen...
       scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!");
       g_free(bmsg);