]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fix Numerics::CannotSendTo sending the wrong numeric for users.
authorSadie Powell <sadie@witchery.services>
Mon, 6 Apr 2020 19:34:44 +0000 (20:34 +0100)
committerSadie Powell <sadie@witchery.services>
Mon, 6 Apr 2020 19:34:44 +0000 (20:34 +0100)
include/numericbuilder.h

index f9ca26f81920e5a46ce23d4b5de4c6334af716ce..1545b36e42a99d56a0b3ab9666eaae9f9c574a44 100644 (file)
@@ -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.",