]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_censor.cpp
Fix m_alias not reconstituting the RFC message properly.
[user/henk/code/inspircd.git] / src / modules / m_censor.cpp
index cb2bec85a9c70077241471d461cabf2959a3bc66..fedc0f7130f7d7a6e04760e48d02677b63063a6f 100644 (file)
@@ -71,7 +71,7 @@ class ModuleCensor : public Module
                                if (index->second.empty())
                                {
                                        const std::string targname = target.type == MessageTarget::TYPE_CHANNEL ? target.Get<Channel>()->name : target.Get<User>()->nick;
-                                       user->WriteNumeric(ERR_WORDFILTERED, targname, index->first.c_str(), "Your message contained a censored word, and was blocked");
+                                       user->WriteNumeric(ERR_CANNOTSENDTOCHAN, targname, "Your message contained a censored word (" + index->first + "), and was blocked");
                                        return MOD_RES_DENY;
                                }