From ec8a7215bd7385cfcfab72a9ccff667e0e790915 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Mon, 7 Sep 2015 11:58:31 +0200 Subject: [PATCH] Fix /GLINE 'ban too broad' error when the ban was perfectly OK. --- src/modules/m_tkl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_tkl.c b/src/modules/m_tkl.c index 74fd197ec..417cf2e5e 100644 --- a/src/modules/m_tkl.c +++ b/src/modules/m_tkl.c @@ -475,7 +475,7 @@ int ban_too_broad(char *usermask, char *hostmask) if (*p != '*' && *p != '.' && *p != '?') cnt++; - if (cnt < 4) + if (cnt >= 4) return 0; p = strchr(hostmask, '/');