mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
9d33dab886
commit
5630ebe1a1
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user