mirror of
https://github.com/weechat/weechat.git
synced 2026-06-27 21:36:37 +02:00
Fixed bug in charset plugin: now encode/decode channels/nicks in IRC messages (after command)
This commit is contained in:
@@ -256,6 +256,7 @@ weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
|
||||
*pos_args = pos2 + 1;
|
||||
else
|
||||
{
|
||||
*pos_args = pos2;
|
||||
if ((pos2[0] == '#') || (pos2[0] == '&')
|
||||
|| (pos2[0] == '+') || (pos2[0] == '!'))
|
||||
{
|
||||
@@ -276,12 +277,6 @@ weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
|
||||
*nick = strdup (pos2);
|
||||
}
|
||||
}
|
||||
if (pos3)
|
||||
{
|
||||
while (pos3[0] == ' ')
|
||||
pos3++;
|
||||
*pos_args = (pos3[0] == ':') ? pos3 + 1 : pos3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -256,6 +256,7 @@ weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
|
||||
*pos_args = pos2 + 1;
|
||||
else
|
||||
{
|
||||
*pos_args = pos2;
|
||||
if ((pos2[0] == '#') || (pos2[0] == '&')
|
||||
|| (pos2[0] == '+') || (pos2[0] == '!'))
|
||||
{
|
||||
@@ -276,12 +277,6 @@ weechat_charset_parse_irc_msg (char *message, char **nick, char **command,
|
||||
*nick = strdup (pos2);
|
||||
}
|
||||
}
|
||||
if (pos3)
|
||||
{
|
||||
while (pos3[0] == ' ')
|
||||
pos3++;
|
||||
*pos_args = (pos3[0] == ':') ? pos3 + 1 : pos3;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user