Permalink
Browse files

Merge pull request #396 from Robby-/insp12+cmode_b-limit

[1.2] cmode_b: Correction to the maxbans conditional
  • Loading branch information...
2 parents ff02867 + b72984f commit 668cbe381db5d670742c9d28e3169a2fc2371c6c @Adam- Adam- committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/modes/cmode_b.cpp
View
@@ -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 = "";

0 comments on commit 668cbe3

Please sign in to comment.