Fix /ignore not accepting full hosts

Fixes #1828
This commit is contained in:
Patrick Griffis 2018-03-09 21:33:42 -05:00
parent 77c8fe1421
commit 6ec523423a
1 changed files with 4 additions and 1 deletions

View File

@ -2342,7 +2342,10 @@ cmd_ignore (struct session *sess, char *tbuf, char *word[], char *word_eol[])
return FALSE;
mask = word[2];
if (strchr (mask, '?') == NULL &&
/* If not a full mask or using wildcards, assume nick */
if (strchr (mask, '!') == NULL &&
strchr (mask, '@') == NULL &&
strchr (mask, '?') == NULL &&
strchr (mask, '*') == NULL)
{
mask = tbuf;