comparison libpurple/protocols/irc/irc.c @ 27936:1688f7e15530

propagate from branch 'im.pidgin.pidgin' (head f71e0a5c7eff9c53c7641ad6c6b135a3dfec040f) to branch 'im.pidgin.pidgin.yaz' (head 06f54c4daa5abaa96e6a740e3aa88a8bc377bff5)
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 31 Mar 2009 11:18:23 +0000
parents d8e6a2d592a4 9ea3474065dc
children 1337d2813b2d
comparison
equal deleted inserted replaced
27935:f33f4ddbf01a 27936:1688f7e15530
563 static void irc_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group) 563 static void irc_add_buddy(PurpleConnection *gc, PurpleBuddy *buddy, PurpleGroup *group)
564 { 564 {
565 struct irc_conn *irc = (struct irc_conn *)gc->proto_data; 565 struct irc_conn *irc = (struct irc_conn *)gc->proto_data;
566 struct irc_buddy *ib = g_new0(struct irc_buddy, 1); 566 struct irc_buddy *ib = g_new0(struct irc_buddy, 1);
567 ib->name = g_strdup(purple_buddy_get_name(buddy)); 567 ib->name = g_strdup(purple_buddy_get_name(buddy));
568 g_hash_table_insert(irc->buddies, ib->name, ib); 568 g_hash_table_replace(irc->buddies, ib->name, ib);
569 569
570 /* if the timer isn't set, this is during signon, so we don't want to flood 570 /* if the timer isn't set, this is during signon, so we don't want to flood
571 * ourself off with ISON's, so we don't, but after that we want to know when 571 * ourself off with ISON's, so we don't, but after that we want to know when
572 * someone's online asap */ 572 * someone's online asap */
573 if (irc->timer) 573 if (irc->timer)