| 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) |