summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorburlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-17 19:43:42 +0000
committerburlex <burlex@e03df62e-2008-0410-955e-edbf42e46eb7>2007-08-17 19:43:42 +0000
commita9c356d14043761dda60ba147dc0306159082aa6 (patch)
tree9b46a8e16d35e9eabd84ceed60cb9e28e7eda261
parentb22a79da8db0ec3cf6f0c3db6351d5e9a848f7ab (diff)
* Fixed bug in m_banredirect where removing a ban on a channel with maxbans set would result in a "ban list full" message.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7735 e03df62e-2008-0410-955e-edbf42e46eb7
-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;