diff options
| author | 2020-04-06 20:34:44 +0100 | |
|---|---|---|
| committer | 2020-04-06 20:34:44 +0100 | |
| commit | ba30c383ba2bd5d12139be69fcb607b99768dd05 (patch) | |
| tree | a30616c53e65fbd97406cc6b674597688df5c58f /include/numericbuilder.h | |
| parent | Fix building the sqlite3 module on the macOS CI. (diff) | |
Fix Numerics::CannotSendTo sending the wrong numeric for users.
Diffstat (limited to 'include/numericbuilder.h')
| -rw-r--r-- | include/numericbuilder.h | 4 |
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.", |
