summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-03-30 13:27:43 +0000
committerP. Powell <petpow@saberuk.com>2019-09-23 13:23:02 +0100
commitae16206f0cb45a74e088a5f220ca0a81bdc6c539 (patch)
tree666b051da329036b0b9fda7389d1eb006e34e852 /modules
parent7045f206afc1fbac4c6687f4268c8c49ea5c0ca5 (diff)
Use NUM instead of PUSH for sending numerics to clients.
Diffstat (limited to 'modules')
-rw-r--r--modules/protocol/inspircd3.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/protocol/inspircd3.cpp b/modules/protocol/inspircd3.cpp
index c6a54315d..872e0a249 100644
--- a/modules/protocol/inspircd3.cpp
+++ b/modules/protocol/inspircd3.cpp
@@ -234,8 +234,7 @@ class InspIRCd3Proto : public IRCDProto
void SendNumericInternal(int numeric, const Anope::string &dest, const Anope::string &buf) anope_override
{
- User *u = User::Find(dest);
- UplinkSocket::Message() << "PUSH " << dest << " ::" << Me->GetName() << " " << numeric << " " << (u ? u->nick : dest) << " " << buf;
+ UplinkSocket::Message() << "NUM " << Me->GetSID() << " " << dest << " " << numeric << " " << buf;
}
void SendModeInternal(const MessageSource &source, const Channel *dest, const Anope::string &buf) anope_override