mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Merge pull request #396 from Robby-/insp12+cmode_b-limit
[1.2] cmode_b: Correction to the maxbans conditional
This commit is contained in:
commit
668cbe381d
@ -115,7 +115,7 @@ std::string& ModeChannelBan::AddBan(User *user, std::string &dest, Channel *chan
|
|||||||
return dest;
|
return dest;
|
||||||
|
|
||||||
long maxbans = chan->GetMaxBans();
|
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);
|
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 = "";
|
dest = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user