libpurple/protocols/irc/irc.c

branch
vv
changeset 26611
5d52410f6ea8
parent 26337
ec2fc1bc9024
parent 26091
83f52ce0929f
child 27184
13344d18390e
equal deleted inserted replaced
26525:ad90b00d3bc7 26611:5d52410f6ea8
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)

mercurial