From ba31d8080f75a0147d0b380f2c51251e024f0deb Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 22 Apr 2018 13:31:00 +0100 Subject: Replace ERR_{NOCTCPALLOWED,WORDFILTERED} with ERR_CANNOTSENDTOCHAN. There is no reason for these responses to have their own numerics when other modules do not. The only thing this does is make life harder for client developers. --- src/modules/m_censor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_censor.cpp') diff --git a/src/modules/m_censor.cpp b/src/modules/m_censor.cpp index cb2bec85a..9044c90b1 100644 --- a/src/modules/m_censor.cpp +++ b/src/modules/m_censor.cpp @@ -71,7 +71,7 @@ class ModuleCensor : public Module if (index->second.empty()) { const std::string targname = target.type == MessageTarget::TYPE_CHANNEL ? target.Get()->name : target.Get()->nick; - user->WriteNumeric(ERR_WORDFILTERED, targname, index->first.c_str(), "Your message contained a censored word, and was blocked"); + user->WriteNumeric(ERR_CANNOTSENDTOCHAN, targname, index->first.c_str(), "Your message contained a censored word, and was blocked"); return MOD_RES_DENY; } -- cgit v1.2.3