Mercurial > hg
diff mcabber/src/jab_iq.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 | 7caedca15e50 |
children | 0562106d20c1 |
line wrap: on
line diff
--- a/mcabber/src/jab_iq.c Sat Nov 10 23:15:05 2007 +0100 +++ b/mcabber/src/jab_iq.c Sat Nov 10 23:15:16 2007 +0100 @@ -309,7 +309,7 @@ else roster_type = ROSTER_TYPE_AGENT; - roster_add_user(cleanalias, name, group, roster_type, esub); + roster_add_user(cleanalias, name, group, roster_type, esub, 1); g_free(name_tmp); g_free(cleanalias); @@ -755,7 +755,8 @@ // Make sure this is a room (it can be a conversion user->room) room_elt = roster_find(bjid, jidsearch, 0); if (!room_elt) { - room_elt = roster_add_user(bjid, name, NULL, ROSTER_TYPE_ROOM, sub_none); + room_elt = roster_add_user(bjid, name, NULL, ROSTER_TYPE_ROOM, + sub_none, -1); } else { buddy_settype(room_elt->data, ROSTER_TYPE_ROOM); /*