From 2112152e3369be27ae6ecb1a14205e64b8f85999 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 16 Apr 2010 21:12:47 -0500 Subject: Check maximum length of ban list for local users, not remote --- src/modules/u_listmode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/u_listmode.h b/src/modules/u_listmode.h index 7e018e558..62093fdd4 100644 --- a/src/modules/u_listmode.h +++ b/src/modules/u_listmode.h @@ -257,7 +257,7 @@ class ListModeBase : public ModeHandler { // We have a pattern matching the channel... maxsize = el->size(); - if (IS_LOCAL(source) || (maxsize < it->limit)) + if (!IS_LOCAL(source) || (maxsize < it->limit)) { /* Ok, it *could* be allowed, now give someone subclassing us * a chance to validate the parameter. -- cgit v1.2.3