comparison src/protocols/irc/msgs.c @ 8186:8efff3aa4e39

[gaim-migrate @ 8907] marv doesn't like missed parts committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Fri, 30 Jan 2004 23:09:17 +0000
parents da57fb60680a
children 1d86096ae0f4
comparison
equal deleted inserted replaced
8185:3a229ad2fab0 8186:8efff3aa4e39
706 { 706 {
707 GaimConnection *gc = gaim_account_get_connection(irc->account); 707 GaimConnection *gc = gaim_account_get_connection(irc->account);
708 GaimConversation *convo; 708 GaimConversation *convo;
709 char *nick, *msg; 709 char *nick, *msg;
710 710
711 if (!args || !args[0] || !args[1] || !gc) 711 if (!args || !args[0] || !gc)
712 return; 712 return;
713 713
714 convo = gaim_find_conversation_with_account(args[0], irc->account); 714 convo = gaim_find_conversation_with_account(args[0], irc->account);
715 if (!convo) { 715 if (!convo) {
716 gaim_debug(GAIM_DEBUG_INFO, "irc", "Got a PART on %s, which doesn't exist -- probably closed\n", args[0]); 716 gaim_debug(GAIM_DEBUG_INFO, "irc", "Got a PART on %s, which doesn't exist -- probably closed\n", args[0]);
717 return; 717 return;
718 } 718 }
719 719
720 nick = irc_mask_nick(from); 720 nick = irc_mask_nick(from);
721 if (!gaim_utf8_strcasecmp(nick, gaim_connection_get_display_name(gc))) { 721 if (!gaim_utf8_strcasecmp(nick, gaim_connection_get_display_name(gc))) {
722 msg = g_strdup_printf(_("You have parted the channel%s%s"), *args[1] ? ": " : "", args[1]); 722 msg = g_strdup_printf(_("You have parted the channel%s%s"),
723 (args[1] && *args[1]) ? ": " : "", args[1]);
723 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], msg, GAIM_MESSAGE_SYSTEM, time(NULL)); 724 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], msg, GAIM_MESSAGE_SYSTEM, time(NULL));
724 g_free(msg); 725 g_free(msg);
725 } else { 726 } else {
726 gaim_conv_chat_remove_user(GAIM_CONV_CHAT(convo), nick, args[1]); 727 gaim_conv_chat_remove_user(GAIM_CONV_CHAT(convo), nick, args[1]);
727 } 728 }