1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 17:53:13 +02:00

Fix bug with hostmasks in IRC command /ignore (bug #30716)

This commit is contained in:
Sebastien Helleu
2010-08-20 10:22:32 +02:00
parent 3402de02b0
commit bb42984f5d
2 changed files with 9 additions and 2 deletions
+7 -1
View File
@@ -4108,7 +4108,7 @@ irc_protocol_recv_command (struct t_irc_server *server,
const char *msg_channel)
{
int i, cmd_found, return_code, argc, decode_color, message_ignored;
char *dup_irc_message;
char *dup_irc_message, *pos_space;
struct t_irc_channel *ptr_channel;
t_irc_recv_func *cmd_recv_func;
const char *cmd_name;
@@ -4273,6 +4273,12 @@ irc_protocol_recv_command (struct t_irc_server *server,
nick = (nick1) ? strdup (nick1) : NULL;
address = (address1) ? strdup (address1) : NULL;
host = (host1) ? strdup (host1) : NULL;
if (host)
{
pos_space = strchr (host, ' ');
if (pos_space)
pos_space[0] = '\0';
}
/* check if message is ignored or not */
ptr_channel = NULL;