1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 20:33:13 +02:00

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.
This commit is contained in:
Sadie Powell
2024-02-21 16:35:27 +00:00
parent 3ecf6b495b
commit c4ab550ec7
6 changed files with 130 additions and 56 deletions
+2 -2
View File
@@ -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<Anope::string> &tags, const MessageSource &source, const Anope::string &command, const std::vector<Anope::string> &params) override
{
return IRCDProto::Format(source.empty() ? Me->GetSID() : source, message);
return IRCDProto::Format(message, tags, source.GetSource().empty() ? source : Me, command, params);
}
};