aboutsummaryrefslogtreecommitdiffstats
path: root/src/modes/cmode_b.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2012-06-28 01:39:16 +0200
committerGravatar Robin Burchell2012-07-01 21:07:29 +0200
commitf3bf40e3a1bcb863d1a76983338db6f5bbe3318e (patch)
tree3569ccc492c2ddb0d7b42bd86cc2b83fb630b24d /src/modes/cmode_b.cpp
parentm_callerid, m_dccallow Use OnUserPostNick hook instead of OnUserPreNick (diff)
downloadinspircd++-f3bf40e3a1bcb863d1a76983338db6f5bbe3318e.tar.gz
inspircd++-f3bf40e3a1bcb863d1a76983338db6f5bbe3318e.tar.bz2
inspircd++-f3bf40e3a1bcb863d1a76983338db6f5bbe3318e.zip
Fix maxbans not being enforced
Diffstat (limited to 'src/modes/cmode_b.cpp')
-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 034a93a85..660b0c275 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 = "";