summaryrefslogtreecommitdiff
path: root/modules/protocol/ngircd.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-21 16:35:27 +0000
committerSadie Powell <sadie@witchery.services>2024-02-22 00:14:08 +0000
commitc4ab550ec719a80abada719dbe8680be806c370f (patch)
tree371e5b11134303336719c9a18affdfeab3afcb25 /modules/protocol/ngircd.cpp
parent3ecf6b495b02bdabe317547fe4bcf2179e3fb6d7 (diff)
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.
Diffstat (limited to 'modules/protocol/ngircd.cpp')
-rw-r--r--modules/protocol/ngircd.cpp4
1 files changed, 2 insertions, 2 deletions
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<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);
}
};