comparison mcabber/src/hooks.c @ 483:4a10c04ac2fb

Fix a bug in roster_find()
author Mikael Berthe <mikael@lilotux.net>
date Wed, 05 Oct 2005 21:46:13 +0200
parents b82428ac107d
children 00e2d3821a5b
comparison
equal deleted inserted replaced
482:2ea7591584ab 483:4a10c04ac2fb
55 } else { 55 } else {
56 wmsg = (char*) msg; 56 wmsg = (char*) msg;
57 } 57 }
58 58
59 // If this user isn't in the roster, we add it 59 // If this user isn't in the roster, we add it
60 roster_usr = roster_find(jid, jidsearch, 60 roster_usr = roster_find(jid, jidsearch, 0);
61 rtype|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM);
62 if (!roster_usr) { 61 if (!roster_usr) {
63 new_guy = TRUE; 62 new_guy = TRUE;
64 roster_usr = roster_add_user(jid, NULL, NULL, rtype); 63 roster_usr = roster_add_user(jid, NULL, NULL, rtype);
65 if (!roster_usr) { // Shouldn't happen... 64 if (!roster_usr) { // Shouldn't happen...
66 scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!"); 65 scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!");