summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-04-16 21:12:47 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2010-04-16 21:12:47 -0500
commit2112152e3369be27ae6ecb1a14205e64b8f85999 (patch)
treec12317f4f27bc2d74c3a56c1af5e3fe073e702b6
parentafd80b9db5693088c17c22c451f7875ea966d8a8 (diff)
Check maximum length of ban list for local users, not remote
-rw-r--r--src/modules/u_listmode.h2
1 files changed, 1 insertions, 1 deletions
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.