comparison mcabber/src/hooks.c @ 603:9516db839e08

Store subscription data
author Mikael Berthe <mikael@lilotux.net>
date Thu, 15 Dec 2005 12:52:37 +0100
parents 5a685e9012b4
children d3020b2c4da2
comparison
equal deleted inserted replaced
602:7b20c27cae48 603:9516db839e08
65 65
66 // If this user isn't in the roster, we add it 66 // If this user isn't in the roster, we add it
67 roster_usr = roster_find(jid, jidsearch, 0); 67 roster_usr = roster_find(jid, jidsearch, 0);
68 if (!roster_usr) { 68 if (!roster_usr) {
69 new_guy = TRUE; 69 new_guy = TRUE;
70 roster_usr = roster_add_user(jid, NULL, NULL, rtype); 70 roster_usr = roster_add_user(jid, NULL, NULL, rtype, sub_none);
71 if (!roster_usr) { // Shouldn't happen... 71 if (!roster_usr) { // Shouldn't happen...
72 scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!"); 72 scr_LogPrint(LPRINT_LOGNORM, "ERROR: unable to add buddy!");
73 if (bmsg) g_free(bmsg); 73 if (bmsg) g_free(bmsg);
74 if (mmsg) g_free(mmsg); 74 if (mmsg) g_free(mmsg);
75 return; 75 return;