changeset 10551:6ef7be688140

[gaim-migrate @ 11926] This fixes bug 1109491, and others (crash on IRC part). committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 28 Jan 2005 05:47:39 +0000
parents 522cd02f235f
children 895ab663c87c
files src/protocols/irc/msgs.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/irc/msgs.c	Fri Jan 28 05:01:24 2005 +0000
+++ b/src/protocols/irc/msgs.c	Fri Jan 28 05:47:39 2005 +0000
@@ -780,7 +780,8 @@
 	nick = irc_mask_nick(from);
 	if (!gaim_utf8_strcasecmp(nick, gaim_connection_get_display_name(gc))) {
 		msg = g_strdup_printf(_("You have parted the channel%s%s"),
-                                      (args[1] && *args[1]) ? ": " : "", args[1]);
+                                      (args[1] && *args[1]) ? ": " : "",
+				      (args[1] && *args[1]) ? args[1] : "");
 		gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], msg, GAIM_MESSAGE_SYSTEM, time(NULL));
 		g_free(msg);
 		serv_got_chat_left(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(convo)));