summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-01-05 07:44:55 -0800
committerAttila Molnar <attilamolnar@hush.com>2013-01-05 07:44:55 -0800
commitfd4b74357b7097948c16e2a51ad116f6bb66b48d (patch)
tree453047bcd7224e468b908716882eb585bd8e2465
parent3988e9779e95c4d758a489ca4dc49138a0a0f26f (diff)
parent1aaba0debce25af576961350dc51103d4f4eb948 (diff)
Merge pull request #397 from Robby-/insp20+cmode_b-limit
[2.0] cmode_b: Correction to the maxbans conditional
-rw-r--r--src/modes/cmode_b.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes/cmode_b.cpp b/src/modes/cmode_b.cpp
index 6bdd076f8..09df05100 100644
--- a/src/modes/cmode_b.cpp
+++ b/src/modes/cmode_b.cpp
@@ -116,7 +116,7 @@ std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan
return dest;
long maxbans = chan->GetMaxBans();
- if (IS_LOCAL(user) && ((unsigned)chan->bans.size() > (unsigned)maxbans))
+ if (IS_LOCAL(user) && ((unsigned)chan->bans.size() >= (unsigned)maxbans))
{
user->WriteServ("478 %s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)",user->nick.c_str(), chan->name.c_str(), chan->name.c_str(), maxbans);
dest.clear();