Mercurial > pidgin.yaz
comparison libpurple/protocols/irc/msgs.c @ 28202:141e76df86a6
merged with im.pidgin.pidgin
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 08 Aug 2009 17:35:08 +0900 |
parents | f9cf1e14838b |
children | 00302e68c31d |
comparison
equal
deleted
inserted
replaced
28177:94abbb806273 | 28202:141e76df86a6 |
---|---|
101 buddies = g_slist_delete_link(buddies, buddies)) | 101 buddies = g_slist_delete_link(buddies, buddies)) |
102 { | 102 { |
103 PurpleBuddy *b = buddies->data; | 103 PurpleBuddy *b = buddies->data; |
104 struct irc_buddy *ib = g_new0(struct irc_buddy, 1); | 104 struct irc_buddy *ib = g_new0(struct irc_buddy, 1); |
105 ib->name = g_strdup(purple_buddy_get_name(b)); | 105 ib->name = g_strdup(purple_buddy_get_name(b)); |
106 g_hash_table_insert(irc->buddies, ib->name, ib); | 106 ib->ref = 1; |
107 g_hash_table_replace(irc->buddies, ib->name, ib); | |
107 } | 108 } |
108 | 109 |
109 irc_blist_timeout(irc); | 110 irc_blist_timeout(irc); |
110 if (!irc->timer) | 111 if (!irc->timer) |
111 irc->timer = purple_timeout_add_seconds(45, (GSourceFunc)irc_blist_timeout, (gpointer)irc); | 112 irc->timer = purple_timeout_add_seconds(45, (GSourceFunc)irc_blist_timeout, (gpointer)irc); |