From: Ethan B. <ebl...@us...> - 2004-01-30 23:10:54
|
Update of /cvsroot/gaim/gaim/src/protocols/irc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25081/src/protocols/irc Modified Files: msgs.c Log Message: marv doesn't like missed parts Index: msgs.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/irc/msgs.c,v retrieving revision 1.18 retrieving revision 1.19 diff -u -d -p -r1.18 -r1.19 --- msgs.c 22 Jan 2004 02:44:13 -0000 1.18 +++ msgs.c 30 Jan 2004 23:09:17 -0000 1.19 @@ -708,7 +708,7 @@ void irc_msg_part(struct irc_conn *irc, GaimConversation *convo; char *nick, *msg; - if (!args || !args[0] || !args[1] || !gc) + if (!args || !args[0] || !gc) return; convo = gaim_find_conversation_with_account(args[0], irc->account); @@ -719,7 +719,8 @@ void irc_msg_part(struct irc_conn *irc, 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]); + msg = g_strdup_printf(_("You have parted the channel%s%s"), + (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); } else { |