aboutsummaryrefslogtreecommitdiffstats
path: root/src/mode.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-04-16 21:11:47 -0500
committerGravatar Daniel De Graaf2010-08-03 17:32:42 -0400
commit91d333bd4f79d5429102c84af7d67be7efe93cfb (patch)
tree463547cb72eed2e3f01942c2d01148f0de1ca4cd /src/mode.cpp
parentGet rid of more useless assign() invocations (diff)
Check maximum length of ban list for local users, not remote
Diffstat (limited to 'src/mode.cpp')
-rw-r--r--src/mode.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp
index 370a17b2f..443c91820 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -1136,7 +1136,7 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std
{
// 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.