From 123198b37ef154db442d7ed4fffa796e99d8d7c9 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Fri, 16 Apr 2010 21:13:22 -0500 Subject: Check maximum length of ban list for local users, not remote --- include/u_listmode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/u_listmode.h b/include/u_listmode.h index eb3cf18b7..b5d32480a 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -310,7 +310,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.3.1-10-gc9f91