summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-04-16 21:13:22 -0500
committerGravatar Daniel De Graaf2010-04-16 21:13:22 -0500
commit123198b37ef154db442d7ed4fffa796e99d8d7c9 (patch)
tree43abc2e98155da7cf843c6d320873c32e9f9118e
parentFix typo in argument to valdebug spotted by daemonic. (diff)
Check maximum length of ban list for local users, not remote
-rw-r--r--include/u_listmode.h2
1 files changed, 1 insertions, 1 deletions
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.