No need to show the censored word twice! :)

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11245 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2009-03-22 18:47:22 +00:00
parent fa2d0dd4f0
commit 097e4e9a4c

View File

@ -106,7 +106,7 @@ class ModuleChanFilter : public Module
if (hidemask)
user->WriteNumeric(404, "%s %s :Cannot send to channel (your message contained a censored word)",user->nick.c_str(), chan->name.c_str());
else
user->WriteNumeric(404, "%s %s %s :Cannot send to channel (your message contained a censored word: %s)",user->nick.c_str(), chan->name.c_str(), i->mask.c_str(), i->mask.c_str());
user->WriteNumeric(404, "%s %s %s :Cannot send to channel (your message contained a censored word)",user->nick.c_str(), chan->name.c_str(), i->mask.c_str());
return 1;
}
}