diff options
author | Sadie Powell <sadie@witchery.services> | 2025-05-03 17:07:07 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-05-03 21:28:56 +0100 |
commit | 010beb52b1f3c697a07f9a130d2ed9335fe1cd98 (patch) | |
tree | 734750a5677afff443f2117dc34ba14d3351fb28 /modules/database/db_atheme.cpp | |
parent | c95594141346ef6fb65a5af177bed35ed865234d (diff) |
Store the setter and ts for all modes and try to restore them.
This is mostly for preserving channel list mode info.
Diffstat (limited to 'modules/database/db_atheme.cpp')
-rw-r--r-- | modules/database/db_atheme.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/database/db_atheme.cpp b/modules/database/db_atheme.cpp index 950432d10..971a45068 100644 --- a/modules/database/db_atheme.cpp +++ b/modules/database/db_atheme.cpp @@ -84,14 +84,14 @@ public: } }; -struct ModeData final +struct ModeLockData final { char letter; Anope::string name; Anope::string value; bool set; - ModeData(const Anope::string &n, bool s, const Anope::string &v = "") + ModeLockData(const Anope::string &n, bool s, const Anope::string &v = "") : letter(0) , name(n) , value(v) @@ -99,7 +99,7 @@ struct ModeData final { } - ModeData(char l, const Anope::string &v = "") + ModeLockData(char l, const Anope::string &v = "") : letter(l) , value(v) , set(true) @@ -123,7 +123,7 @@ struct ChannelData final Anope::string info_adder; Anope::string info_message; time_t info_ts = 0; - std::vector<ModeData> mlocks; + std::vector<ModeLockData> mlocks; Anope::string suspend_by; Anope::string suspend_reason; time_t suspend_ts = 0; |