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:
@@ -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> ¶ms) override
|
||||
{
|
||||
return IRCDProto::Format(source.empty() ? Me->GetSID() : source, message);
|
||||
return IRCDProto::Format(message, tags, source.GetSource().empty() ? source : Me, command, params);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user