From f93d9e76983e15bd1642c31d6acf430754f0600a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Feb 2024 13:19:36 +0000 Subject: Store the source message identifier in CommandSource. --- include/commands.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/commands.h b/include/commands.h index 7c1e62686..1778dd4d9 100644 --- a/include/commands.h +++ b/include/commands.h @@ -61,15 +61,17 @@ public: /* Where the reply should go */ CommandReply *reply; /* Channel the command was executed on (fantasy) */ - Reference c; + Reference c = nullptr; /* The service this command is on */ Reference service; /* The actual name of the command being executed */ Anope::string command; /* The permission of the command being executed */ Anope::string permission; + /* The unique identifier of the executing message. */ + Anope::string msgid; - CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *reply, BotInfo *bi); + CommandSource(const Anope::string &n, User *user, NickCore *core, CommandReply *reply, BotInfo *bi, const Anope::string &m = ""); const Anope::string &GetNick() const; User *GetUser(); -- cgit