libpurple/protocols/irc/msgs.c

branch
soc.2013.gobjectification
changeset 34750
826c1611ef90
parent 34746
dc9c911dbd35
child 34855
9c289149eed4
equal deleted inserted replaced
34749:08b47c055830 34750:826c1611ef90
1128 1128
1129 if (!gc) { 1129 if (!gc) {
1130 g_free(nick); 1130 g_free(nick);
1131 return; 1131 return;
1132 } 1132 }
1133 chats = gc->buddy_chats; 1133 chats = purple_connection_get_active_chats(gc);
1134 1134
1135 if (!purple_utf8_strcasecmp(nick, purple_connection_get_display_name(gc))) { 1135 if (!purple_utf8_strcasecmp(nick, purple_connection_get_display_name(gc))) {
1136 purple_connection_set_display_name(gc, args[0]); 1136 purple_connection_set_display_name(gc, args[0]);
1137 } 1137 }
1138 1138
1398 return; 1398 return;
1399 1399
1400 data[0] = irc_mask_nick(from); 1400 data[0] = irc_mask_nick(from);
1401 data[1] = args[0]; 1401 data[1] = args[0];
1402 /* XXX this should have an API, I shouldn't grab this directly */ 1402 /* XXX this should have an API, I shouldn't grab this directly */
1403 g_slist_foreach(gc->buddy_chats, (GFunc)irc_chat_remove_buddy, data); 1403 g_slist_foreach(purple_connection_get_active_chats(gc),
1404 (GFunc)irc_chat_remove_buddy, data);
1404 1405
1405 if ((ib = g_hash_table_lookup(irc->buddies, data[0])) != NULL) { 1406 if ((ib = g_hash_table_lookup(irc->buddies, data[0])) != NULL) {
1406 ib->new_online_status = FALSE; 1407 ib->new_online_status = FALSE;
1407 irc_buddy_status(data[0], ib, irc); 1408 irc_buddy_status(data[0], ib, irc);
1408 } 1409 }

mercurial