From ba30c383ba2bd5d12139be69fcb607b99768dd05 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 6 Apr 2020 20:34:44 +0100 Subject: Fix Numerics::CannotSendTo sending the wrong numeric for users. --- include/numericbuilder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/numericbuilder.h b/include/numericbuilder.h index f9ca26f81..1545b36e4 100644 --- a/include/numericbuilder.h +++ b/include/numericbuilder.h @@ -234,14 +234,14 @@ class Numerics::CannotSendTo : public Numeric::Numeric } CannotSendTo(User* user, const std::string& message) - : Numeric(ERR_CANNOTSENDTOCHAN) + : Numeric(ERR_CANTSENDTOUSER) { push(user->registered & REG_NICK ? user->nick : "*"); push(message); } CannotSendTo(User* user, const std::string& what, ModeHandler* mh, bool self = false) - : Numeric(ERR_CANNOTSENDTOCHAN) + : Numeric(ERR_CANTSENDTOUSER) { push(user->registered & REG_NICK ? user->nick : "*"); push(InspIRCd::Format("You cannot send %s to this user whilst %s have the +%c (%s) mode set.", -- cgit v1.2.3