1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-09 19:23:13 +02:00

irc: fix extract of channel in parser for JOIN/PART messages when there is a colon before the channel name (closes #83)

The problem was only affecting scripts or triggers using the parser.
The irc plugin does not use the "channel" variable built by the parser
(when parsing JOIN/PART messages).
This commit is contained in:
Sébastien Helleu
2014-05-28 20:11:12 +02:00
parent 061b8b76b6
commit fe872f26d4
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -151,6 +151,12 @@ irc_message_parse (struct t_irc_server *server, const char *message,
/* now we have: pos --> "#channel :hello!" */
if (arguments)
*arguments = strdup (pos);
if ((pos[0] == ':')
&& ((strncmp (ptr_message, "JOIN ", 5) == 0)
|| (strncmp (ptr_message, "PART ", 5) == 0)))
{
pos++;
}
if (pos[0] != ':')
{
if (irc_channel_is_channel (server, pos))