summary refs log tree commit diff stats
path: root/src/common/outbound.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-03-17 16:20:38 -0300
committerTingPing <tngpng@gmail.com>2013-03-17 16:20:38 -0300
commitc58a741abb022ef6e65770678a03f869cea49815 (patch)
tree0bb31f6bb91869016b133ad3860ecb2d4264a68b /src/common/outbound.c
parente8a78b9aa1398deb69d20d599be2a630f721cafa (diff)
All unignoring nicks just like ignore
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r--src/common/outbound.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c
index e073ca1d..6127fc9c 100644
--- a/src/common/outbound.c
+++ b/src/common/outbound.c
@@ -3289,6 +3289,12 @@ cmd_unignore (struct session *sess, char *tbuf, char *word[],
 	char *arg = word[3];
 	if (*mask)
 	{
+		if (strchr (mask, '?') == NULL && strchr (mask, '*') == NULL)
+		{
+			mask = tbuf;
+			snprintf (tbuf, TBUFSIZE, "%s!*@*", word[2]);
+		}
+		
 		if (ignore_del (mask, NULL))
 		{
 			if (g_ascii_strcasecmp (arg, "QUIET"))