aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam2013-01-14 12:54:08 -0800
committerGravatar Adam2013-01-14 12:54:08 -0800
commit668cbe381db5d670742c9d28e3169a2fc2371c6c (patch)
treebf7939cadda86b2c42161348dc189810b2f367da /src
parentRelease 1.2.10 (diff)
parentcmode_b: Correction to the maxbans conditional (diff)
Merge pull request #396 from Robby-/insp12+cmode_b-limit upstream/insp12
[1.2] cmode_b: Correction to the maxbans conditional
Diffstat (limited to 'src')
-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 11376492d..d2f8b6253 100644
--- a/src/modes/cmode_b.cpp
+++ b/src/modes/cmode_b.cpp
@@ -115,7 +115,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 = "";