1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 21:53:13 +02:00

Store the source message identifier in CommandSource.

This commit is contained in:
Sadie Powell
2024-02-22 13:19:36 +00:00
parent 7423fa9998
commit f93d9e7698
4 changed files with 23 additions and 6 deletions
+4 -2
View File
@@ -61,15 +61,17 @@ public:
/* Where the reply should go */
CommandReply *reply;
/* Channel the command was executed on (fantasy) */
Reference<Channel> c;
Reference<Channel> c = nullptr;
/* The service this command is on */
Reference<BotInfo> 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();