diff libpurple/protocols/irc/irc.c @ 25465:9ea3474065dc

propagate from branch 'im.pidgin.pidgin' (head 303af74a38e7b313d4fb0be4d4054a16cb13d819) to branch 'im.pidgin.cpw.darkrain42.buddy-add' (head 8c6ff5a8cf91db250e9440fa0acab89d7fefe4ac)
author Paul Aurich <paul@darkrain42.org>
date Sat, 07 Mar 2009 01:23:51 +0000
parents 32ad012ef6ac 125cac3e24ee
children f5f08111da52 1688f7e15530
line wrap: on
line diff
--- a/libpurple/protocols/irc/irc.c	Thu Mar 05 23:54:50 2009 +0000
+++ b/libpurple/protocols/irc/irc.c	Sat Mar 07 01:23:51 2009 +0000
@@ -565,7 +565,7 @@
 	struct irc_conn *irc = (struct irc_conn *)gc->proto_data;
 	struct irc_buddy *ib = g_new0(struct irc_buddy, 1);
 	ib->name = g_strdup(purple_buddy_get_name(buddy));
-	g_hash_table_insert(irc->buddies, ib->name, ib);
+	g_hash_table_replace(irc->buddies, ib->name, ib);
 
 	/* if the timer isn't set, this is during signon, so we don't want to flood
 	 * ourself off with ISON's, so we don't, but after that we want to know when