summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-23 21:18:06 -0400
committerAdam <Adam@anope.org>2016-09-23 21:18:06 -0400
commitd50853b64ddf255c24c66bad2d62428cfb4b8d66 (patch)
treea04e0a854863bd3d2868bfe6037fab724a07916f
parent92db2f1e1b66ec0ed1663fbaafadace616023240 (diff)
Fix SendNumericInternal on inspircd sending to the user's uid if dest is a uid
-rw-r--r--modules/protocol/inspircd20.cpp3
1 files changed, 2 insertions, 1 deletions
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