From cbe5b993142c218e09ae972bdce91681cc0ba485 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 4 Apr 2020 11:49:06 +0100 Subject: Add the Numerics::CannotSendTo class and switch stuff to use it. --- src/modules/m_commonchans.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_commonchans.cpp') diff --git a/src/modules/m_commonchans.cpp b/src/modules/m_commonchans.cpp index 60e319aea..1e9ca3fee 100644 --- a/src/modules/m_commonchans.cpp +++ b/src/modules/m_commonchans.cpp @@ -43,7 +43,7 @@ class ModuleCommonChans if (user->HasPrivPermission("users/ignore-commonchans") || user->server->IsULine()) return MOD_RES_PASSTHRU; - user->WriteNumeric(ERR_CANTSENDTOUSER, targuser->nick, "You are not permitted to send private messages to this user (+c is set)"); + user->WriteNumeric(Numerics::CannotSendTo(targuser, "messages", &mode)); return MOD_RES_DENY; } -- cgit v1.3.1-10-gc9f91