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 /modules/fantasy.cpp | |
parent | 7423fa9998d7e7082cac63eda18ae785091ea1b0 (diff) |
Store the source message identifier in CommandSource.
Diffstat (limited to 'modules/fantasy.cpp')
-rw-r--r-- | modules/fantasy.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/fantasy.cpp b/modules/fantasy.cpp index 3930b0218..7658c2ac7 100644 --- a/modules/fantasy.cpp +++ b/modules/fantasy.cpp @@ -175,7 +175,12 @@ public: if (params.size() < cmd->min_params) return; - CommandSource source(u->nick, u, u->Account(), u, c->ci->bi); + Anope::string msgid; + auto iter = tags.find("msgid"); + if (iter != tags.end()) + msgid = iter->second; + + CommandSource source(u->nick, u, u->Account(), u, c->ci->bi, msgid); source.c = c; source.command = it->first; source.permission = info.permission; |