From 6ec523423adc3b1dbf4cdd1fa858c551c409273f Mon Sep 17 00:00:00 2001
From: Patrick Griffis <tingping@tingping.se>
Date: Fri, 9 Mar 2018 21:33:42 -0500
Subject: Fix /ignore not accepting full hosts

Fixes #1828
---
 src/common/outbound.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src')

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;
-- 
cgit 1.4.1