diff options
| author | 2008-08-05 14:30:54 +0000 | |
|---|---|---|
| committer | 2008-08-05 14:30:54 +0000 | |
| commit | b0f3c8ba56b228ef90ca3827fa681ac4afffff9b (patch) | |
| tree | 640c84a399d4168877019fb5346d38b07771217d /src/modules | |
| parent | Add m_serverban, implements extban +b s:server.mask.here, allows +e. This ess... (diff) | |
| download | inspircd++-b0f3c8ba56b228ef90ca3827fa681ac4afffff9b.tar.gz inspircd++-b0f3c8ba56b228ef90ca3827fa681ac4afffff9b.tar.bz2 inspircd++-b0f3c8ba56b228ef90ca3827fa681ac4afffff9b.zip | |
Fix banredirect modifying extban masks, patch based on one provided by jackmcbarn, except with length checking to avoid explosions on certain STL implementations
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10093 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_banredirect.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index ffb263ff7..80beaa450 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -62,6 +62,9 @@ class BanRedirect : public ModeWatcher std::string::iterator start_pos = param.begin(); long maxbans = channel->GetMaxBans(); + if (param.length() >= 2 && param[1] == ':') + return true; + if(adding && (channel->bans.size() > static_cast<unsigned>(maxbans))) { source->WriteNumeric(478, "%s %s :Channel ban list for %s is full (maximum entries for this channel is %ld)", source->nick.c_str(), channel->name.c_str(), channel->name.c_str(), maxbans); |
