summaryrefslogtreecommitdiff
path: root/include/numericbuilder.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2020-04-06 20:34:44 +0100
committerSadie Powell <sadie@witchery.services>2020-04-06 20:34:44 +0100
commitba30c383ba2bd5d12139be69fcb607b99768dd05 (patch)
treea30616c53e65fbd97406cc6b674597688df5c58f /include/numericbuilder.h
parent620c6f9f2ec3340223dd30193d42f25efa5e5493 (diff)
Fix Numerics::CannotSendTo sending the wrong numeric for users.
Diffstat (limited to 'include/numericbuilder.h')
-rw-r--r--include/numericbuilder.h4
1 files changed, 2 insertions, 2 deletions
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.",