summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_banredirect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp
index 1764e6f56..5e730b47f 100644
--- a/src/modules/m_banredirect.cpp
+++ b/src/modules/m_banredirect.cpp
@@ -66,7 +66,7 @@ class BanRedirect : public ModeWatcher
std::string::iterator start_pos = param.begin();
long maxbans = channel->GetMaxBans();
- if(channel->bans.size() > static_cast<unsigned>(maxbans))
+ if(adding && (channel->bans.size() > static_cast<unsigned>(maxbans)))
{
source->WriteServ("478 %s %s :Channel ban list for %s is full (maximum entries for this channel is %d)", source->nick, channel->name, channel->name, maxbans);
return false;