From c4ab550ec719a80abada719dbe8680be806c370f Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 21 Feb 2024 16:35:27 +0000 Subject: Add Uplink::Send, rework message formatting. This is the new way of sending messages to the uplink inspired by the work done in the old git master. This will allow us to do new things involving tags in the future. --- modules/protocol/ngircd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp index 9a460044d..28018e522 100644 --- a/modules/protocol/ngircd.cpp +++ b/modules/protocol/ngircd.cpp @@ -141,9 +141,9 @@ public: this->SendVhost(u, u->GetIdent(), ""); } - Anope::string Format(const Anope::string &source, const Anope::string &message) override + bool Format(Anope::string &message, const Anope::map &tags, const MessageSource &source, const Anope::string &command, const std::vector ¶ms) override { - return IRCDProto::Format(source.empty() ? Me->GetSID() : source, message); + return IRCDProto::Format(message, tags, source.GetSource().empty() ? source : Me, command, params); } }; -- cgit