Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[2.0] cmode_b: Correction to the maxbans conditional #397

Merged
merged 1 commit into from

2 participants

@Robby-

It was possible to set one more ban beyond the configured limit.

@Robby- Robby- cmode_b: Correction to the maxbans conditional
It was possible to set one more ban beyond the configured limit.
1aaba0d
@attilamolnar attilamolnar merged commit fd4b743 into inspircd:insp20
@attilamolnar
Owner

thanks

@Robby- Robby- deleted the Robby-:insp20+cmode_b-limit branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 3, 2013
  1. @Robby-

    cmode_b: Correction to the maxbans conditional

    Robby- authored
    It was possible to set one more ban beyond the configured limit.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/modes/cmode_b.cpp
View
2  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();
Something went wrong with that request. Please try again.