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_delaymsg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/modules/m_delaymsg.cpp') diff --git a/src/modules/m_delaymsg.cpp b/src/modules/m_delaymsg.cpp index 84b5c8353..0952cbf96 100644 --- a/src/modules/m_delaymsg.cpp +++ b/src/modules/m_delaymsg.cpp @@ -141,7 +141,8 @@ ModResult ModuleDelayMsg::HandleMessage(User* user, const MessageTarget& target, { if (channel->GetPrefixValue(user) < VOICE_VALUE) { - user->WriteNumeric(ERR_CANNOTSENDTOCHAN, channel->name, InspIRCd::Format("You must wait %d seconds after joining to send to the channel (+d is set)", len)); + const std::string message = InspIRCd::Format("You cannot send messages to this channel until you have been a member for %d seconds.", len); + user->WriteNumeric(Numerics::CannotSendTo(channel, message)); return MOD_RES_DENY; } } -- cgit v1.3.1-10-gc9f91