diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-03 09:58:44 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-03 09:58:44 +0000 |
commit | e3ebbb9292c6ea0b84b90611b78108a085caed63 (patch) | |
tree | 5b81acb266902128cbfc044f82548a238df71134 /src | |
parent | 0c63269d544170d497cc96b311027df4242f41c7 (diff) |
Fix to prevent adding empty phrases to +g list
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3802 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chanfilter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/m_chanfilter.cpp b/src/modules/m_chanfilter.cpp index 471179bc6..90f564ee1 100644 --- a/src/modules/m_chanfilter.cpp +++ b/src/modules/m_chanfilter.cpp @@ -123,6 +123,9 @@ class ModuleChanFilter : public Module irc::string word = params[0].c_str(); + if (word == "") + return -1; + if (mode_on) { SpamList* spamlist = (SpamList*)chan->GetExt("spam_list"); |