summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-22 13:23:18 +0000
committerSadie Powell <sadie@witchery.services>2024-02-22 13:23:18 +0000
commita75afb597b8b4f7e342c393bc3dea868e66f9b4c (patch)
tree78de3197b88e9811867b93258e3dc402aff3a0b5 /include
parentf93d9e76983e15bd1642c31d6acf430754f0600a (diff)
Add the IRCv3 reply tag to messages sent as responses to a user.
Diffstat (limited to 'include')
-rw-r--r--include/commands.h1
-rw-r--r--include/users.h1
2 files changed, 2 insertions, 0 deletions
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,