From a3658f4fc26201307c7d6e90a47dcab82b927209 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Fri, 5 Feb 2010 23:53:20 +0100 Subject: [PATCH] Fix IRC PART message received on Undernet server (bug #28825) --- ChangeLog | 3 ++- src/plugins/irc/irc-protocol.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c615620f1..8c3b01eaa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ WeeChat ChangeLog ================= FlashCode -v0.3.2-dev, 2010-02-02 +v0.3.2-dev, 2010-02-05 Version 0.3.2 (under dev!) @@ -18,6 +18,7 @@ Version 0.3.2 (under dev!) * irc: fix crash with SSL connection if option ssl_cert is set (bug #28752) * irc: fix bug with SSL connection (fails sometimes when ssl_verify is on) (bug #28741) +* irc: fix PART message received on Undernet server (bug #28825) * irc: add options irc.look.smart_filter_join and irc.look.smart_filter_quit * irc: add option irc.look.display_channel_modes_hide_key to hide channel key in channel modes (bug #23961) diff --git a/src/plugins/irc/irc-protocol.c b/src/plugins/irc/irc-protocol.c index 338968374..dc1625ac6 100644 --- a/src/plugins/irc/irc-protocol.c +++ b/src/plugins/irc/irc-protocol.c @@ -943,7 +943,8 @@ irc_protocol_cmd_part (struct t_irc_server *server, const char *command, pos_comment = (argc > 3) ? ((argv_eol[3][0] == ':') ? argv_eol[3] + 1 : argv_eol[3]) : NULL; - ptr_channel = irc_channel_search (server, argv[2]); + ptr_channel = irc_channel_search (server, + (argv[2][0] == ':') ? argv[2] + 1 : argv[2]); if (ptr_channel) { ptr_nick = irc_nick_search (ptr_channel, nick);