summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2018-03-09 21:33:42 -0500
committerPatrick Griffis <tingping@tingping.se>2018-03-09 21:34:44 -0500
commit6ec523423adc3b1dbf4cdd1fa858c551c409273f (patch)
treee3326ecafdc841f014a85b04942ac66ed9ee93cd /src/common/outbound.c
parent77c8fe142138bcd5833fbde63f70d238f783e98d (diff)
Fix /ignore not accepting full hosts
Fixes #1828
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c5
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;