From d50853b64ddf255c24c66bad2d62428cfb4b8d66 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 23 Sep 2016 21:18:06 -0400 Subject: Fix SendNumericInternal on inspircd sending to the user's uid if dest is a uid --- modules/protocol/inspircd20.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/protocol/inspircd20.cpp b/modules/protocol/inspircd20.cpp index 1d457df58..3444c4412 100644 --- a/modules/protocol/inspircd20.cpp +++ b/modules/protocol/inspircd20.cpp @@ -219,7 +219,8 @@ class InspIRCd20Proto : public IRCDProto void SendNumericInternal(int numeric, const Anope::string &dest, const Anope::string &buf) override { - Uplink::Send("PUSH", dest, ":" + Me->GetName() + " " + numeric + " " + dest + " " + buf); + User *u = User::Find(dest); + Uplink::Send("PUSH", dest, ":" + Me->GetName() + " " + numeric + " " + (u ? u->nick : dest) + " " + buf); } void SendModeInternal(const MessageSource &source, const Channel *dest, const Anope::string &buf) override -- cgit