summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_chanfilter.cpp3
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");