comparison 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
comparison
equal deleted inserted replaced
1354:c373ff3fe7e1 1355:9716cf8a0726
86 86
87 // If this user isn't in the roster, we add it 87 // If this user isn't in the roster, we add it
88 roster_usr = roster_find(bjid, jidsearch, 0); 88 roster_usr = roster_find(bjid, jidsearch, 0);
89 if (!roster_usr) { 89 if (!roster_usr) {
90 new_guy = TRUE; 90 new_guy = TRUE;
91 roster_usr = roster_add_user(bjid, NULL, NULL, rtype, sub_none); 91 roster_usr = roster_add_user(bjid, NULL, NULL, rtype, sub_none, -1);
92 if (!roster_usr) { // Shouldn't happen... 92 if (!roster_usr) { // Shouldn't happen...
93 scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!"); 93 scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!");
94 g_free(bmsg); 94 g_free(bmsg);
95 g_free(mmsg); 95 g_free(mmsg);
96 return; 96 return;