Backport of fix to prevent adding empty phrases to +g list

git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@3803 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-04-03 09:59:04 +00:00
parent 9d33dab886
commit 5630ebe1a1

View File

@ -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");