From a9c356d14043761dda60ba147dc0306159082aa6 Mon Sep 17 00:00:00 2001 From: burlex Date: Fri, 17 Aug 2007 19:43:42 +0000 Subject: * 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 --- src/modules/m_banredirect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(maxbans)) + if(adding && (channel->bans.size() > static_cast(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; -- cgit v1.2.3