From a75afb597b8b4f7e342c393bc3dea868e66f9b4c Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Feb 2024 13:23:18 +0000 Subject: Add the IRCv3 reply tag to messages sent as responses to a user. --- include/commands.h | 1 + include/users.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/commands.h b/include/commands.h index 1778dd4d9..ed318e60a 100644 --- a/include/commands.h +++ b/include/commands.h @@ -44,6 +44,7 @@ struct CoreExport CommandReply { virtual ~CommandReply() = default; virtual void SendMessage(BotInfo *source, const Anope::string &msg) = 0; + virtual void SendMessage(CommandSource& source, const Anope::string &msg); }; /* The source for a command */ diff --git a/include/users.h b/include/users.h index 2c9779ea3..b33cf2916 100644 --- a/include/users.h +++ b/include/users.h @@ -193,6 +193,7 @@ public: */ void SendMessage(BotInfo *source, const char *fmt, ...) ATTR_FORMAT(3, 4); void SendMessage(BotInfo *source, const Anope::string &msg) override; + void SendMessage(CommandSource& source, const Anope::string &msg) override; /** Identify the user to a nick. * updates last_seen, logs the user in, -- cgit