Permalink
Browse files

Merge pull request #397 from Robby-/insp20+cmode_b-limit

[2.0] cmode_b: Correction to the maxbans conditional
  • Loading branch information...
2 parents 3988e97 + 1aaba0d commit fd4b74357b7097948c16e2a51ad116f6bb66b48d @attilamolnar attilamolnar committed Jan 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/modes/cmode_b.cpp
View
@@ -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();

0 comments on commit fd4b743

Please sign in to comment.