comparison mcabber/src/jabglue.c @ 859:cb2a3a1d985f

Make sure we update the roster when a subscription is cancelled
author Mikael Berthe <mikael@lilotux.net>
date Sat, 20 May 2006 19:27:45 +0200
parents 51829325fe21
children e1adea19ba14
comparison
equal deleted inserted replaced
858:2683ad5d1003 859:cb2a3a1d985f
1472 g_free(buf); 1472 g_free(buf);
1473 } else if (!strcmp(type, "unsubscribed")) { 1473 } else if (!strcmp(type, "unsubscribed")) {
1474 /* The subscription request has been denied or a previously-granted 1474 /* The subscription request has been denied or a previously-granted
1475 subscription has been cancelled */ 1475 subscription has been cancelled */
1476 roster_unsubscribed(from); 1476 roster_unsubscribed(from);
1477 update_roster = TRUE;
1477 buf = g_strdup_printf("<%s> has cancelled your subscription to " 1478 buf = g_strdup_printf("<%s> has cancelled your subscription to "
1478 "their presence updates", from); 1479 "their presence updates", from);
1479 scr_WriteIncomingMessage(r, buf, 0, HBB_PREFIX_INFO); 1480 scr_WriteIncomingMessage(r, buf, 0, HBB_PREFIX_INFO);
1480 scr_LogPrint(LPRINT_LOGNORM, "%s", buf); 1481 scr_LogPrint(LPRINT_LOGNORM, "%s", buf);
1481 g_free(buf); 1482 g_free(buf);