summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-02-05 23:53:20 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-02-05 23:53:20 +0100
commita3658f4fc26201307c7d6e90a47dcab82b927209 (patch)
tree4e2ab952f29c19671adaf263f01f9fc6a58fcfac /src/plugins
parent40401f88dac193b4a16ba0938ccb75ea14dc43ef (diff)
downloadweechat-a3658f4fc26201307c7d6e90a47dcab82b927209.zip
Fix IRC PART message received on Undernet server (bug #28825)
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/irc/irc-protocol.c3
1 files changed, 2 insertions, 1 deletions
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);