diff options
| author | 2013-01-03 19:35:02 +0100 | |
|---|---|---|
| committer | 2013-01-03 19:35:02 +0100 | |
| commit | 1aaba0debce25af576961350dc51103d4f4eb948 (patch) | |
| tree | 453047bcd7224e468b908716882eb585bd8e2465 /src/modes/cmode_b.cpp | |
| parent | m_messageflood Ask to be the last to handle OnUserPreMessage/OnUserPreNotice (diff) | |
| download | inspircd++-1aaba0debce25af576961350dc51103d4f4eb948.tar.gz inspircd++-1aaba0debce25af576961350dc51103d4f4eb948.tar.bz2 inspircd++-1aaba0debce25af576961350dc51103d4f4eb948.zip | |
cmode_b: Correction to the maxbans conditional
It was possible to set one more ban beyond the configured limit.
Diffstat (limited to 'src/modes/cmode_b.cpp')
| -rw-r--r-- | src/modes/cmode_b.cpp | 2 |
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(); |
