diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-22 13:19:36 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-22 13:19:36 +0000 |
commit | f93d9e76983e15bd1642c31d6acf430754f0600a (patch) | |
tree | 97e99a42ca08f6d798adbdf397e1cf3671037676 /include | |
parent | 7423fa9998d7e7082cac63eda18ae785091ea1b0 (diff) |
Store the source message identifier in CommandSource.
Diffstat (limited to 'include')
-rw-r--r-- | include/commands.h | 6 |
1 files changed, 4 insertions, 2 deletions
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<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(); |