git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7041
e03df62e-2008-0410-955e-
edbf42e46eb7
#
# <badword text="simple word"
# replace="text to replace with">
+#
+# You can specify <badword text="simple word" replace="">
+# to block lines containing the word
<badword text="shit" replace="poo">
<badword text="fuck" replace="(censored)">
{
if (text2.find(index->first) != irc::string::npos)
{
+ if (index->second.empty())
+ {
+ user->WriteServ("936 %s %s %s :Your message contained a censored word, and was blocked", user->nick, ((chanrec*)dest)->name, index->first.c_str());
+ return 1;
+ }
+
this->ReplaceLine(text2,index->first,index->second);
}
}