Mercurial > pidgin
comparison src/protocols/irc/msgs.c @ 8256:1d86096ae0f4
[gaim-migrate @ 8979]
Tim Ringenbach says this shouldn't have gotten into 0.76, because 0.76
should have been release two weeks ago. He also doesn't have a good
description, so I'll just say it fixed a bunch of idiot mistakes and ugly
hacks on my part regarding the removing of users from the chat lists and
parting chats/channels. Thanks Tim.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 14 Feb 2004 21:07:29 +0000 |
parents | 8efff3aa4e39 |
children | f24172f53650 |
comparison
equal
deleted
inserted
replaced
8255:4de49af535b3 | 8256:1d86096ae0f4 |
---|---|
590 | 590 |
591 if (!gaim_utf8_strcasecmp(gaim_connection_get_display_name(gc), args[1])) { | 591 if (!gaim_utf8_strcasecmp(gaim_connection_get_display_name(gc), args[1])) { |
592 buf = g_strdup_printf(_("You have been kicked by %s: (%s)"), nick, args[2]); | 592 buf = g_strdup_printf(_("You have been kicked by %s: (%s)"), nick, args[2]); |
593 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], buf, GAIM_MESSAGE_SYSTEM, time(NULL)); | 593 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], buf, GAIM_MESSAGE_SYSTEM, time(NULL)); |
594 g_free(buf); | 594 g_free(buf); |
595 /*g_slist_remove(irc->gc->buddy_chats, convo); | 595 serv_got_chat_left(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(convo))); |
596 gaim_conversation_set_account(convo, NULL);*/ | |
597 /*g_list_free(gaim_conv_chat_get_users(GAIM_CONV_CHAT(convo))); | |
598 gaim_conv_chat_set_users(GAIM_CONV_CHAT(convo), NULL);*/ | |
599 } else { | 596 } else { |
600 buf = g_strdup_printf(_("Kicked by %s (%s)"), nick, args[2]); | 597 buf = g_strdup_printf(_("Kicked by %s (%s)"), nick, args[2]); |
601 gaim_conv_chat_remove_user(GAIM_CONV_CHAT(convo), args[1], buf); | 598 gaim_conv_chat_remove_user(GAIM_CONV_CHAT(convo), args[1], buf); |
602 g_free(buf); | 599 g_free(buf); |
603 } | 600 } |
721 if (!gaim_utf8_strcasecmp(nick, gaim_connection_get_display_name(gc))) { | 718 if (!gaim_utf8_strcasecmp(nick, gaim_connection_get_display_name(gc))) { |
722 msg = g_strdup_printf(_("You have parted the channel%s%s"), | 719 msg = g_strdup_printf(_("You have parted the channel%s%s"), |
723 (args[1] && *args[1]) ? ": " : "", args[1]); | 720 (args[1] && *args[1]) ? ": " : "", args[1]); |
724 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], msg, GAIM_MESSAGE_SYSTEM, time(NULL)); | 721 gaim_conv_chat_write(GAIM_CONV_CHAT(convo), args[0], msg, GAIM_MESSAGE_SYSTEM, time(NULL)); |
725 g_free(msg); | 722 g_free(msg); |
723 serv_got_chat_left(gc, gaim_conv_chat_get_id(GAIM_CONV_CHAT(convo))); | |
726 } else { | 724 } else { |
727 gaim_conv_chat_remove_user(GAIM_CONV_CHAT(convo), nick, args[1]); | 725 gaim_conv_chat_remove_user(GAIM_CONV_CHAT(convo), nick, args[1]); |
728 } | 726 } |
729 g_free(nick); | 727 g_free(nick); |
730 } | 728 } |