changeset 9628:b85d6212d707

[gaim-migrate @ 10472] A patch from Stu to solve the same buddy renaming problem we had in IRC. I continue to wonder if this shouldn't be re-fixed in the core... committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Sun, 01 Aug 2004 01:26:33 +0000
parents 8a540b8a5f70
children dd1cc169e956
files src/protocols/silc/ops.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/silc/ops.c	Sun Aug 01 00:31:45 2004 +0000
+++ b/src/protocols/silc/ops.c	Sun Aug 01 01:26:33 2004 +0000
@@ -374,9 +374,10 @@
 								    sg->account);
 			if (!convo)
 				continue;
-			gaim_conv_chat_rename_user(GAIM_CONV_CHAT(convo),
-						   client_entry->nickname,
-						   client_entry2->nickname);
+			if (gaim_conv_chat_find_user(GAIM_CONV_CHAT(convo), client_entry->nickname))
+				gaim_conv_chat_rename_user(GAIM_CONV_CHAT(convo),
+										   client_entry->nickname,
+										   client_entry2->nickname);
 		}
 		silc_hash_table_list_reset(&htl);