diff options
author | Patrick Griffis <tingping@tingping.se> | 2018-03-09 21:33:42 -0500 |
---|---|---|
committer | Patrick Griffis <tingping@tingping.se> | 2018-03-09 21:34:44 -0500 |
commit | 6ec523423adc3b1dbf4cdd1fa858c551c409273f (patch) | |
tree | e3326ecafdc841f014a85b04942ac66ed9ee93cd /src | |
parent | 77c8fe142138bcd5833fbde63f70d238f783e98d (diff) |
Fix /ignore not accepting full hosts
Fixes #1828
Diffstat (limited to 'src')
-rw-r--r-- | src/common/outbound.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index 22fe0482..fe6da8c8 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -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; |