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 /include/users.h | |
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 'include/users.h')
-rw-r--r-- | include/users.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/users.h b/include/users.h index 2a5823cc5..08fa339b2 100644 --- a/include/users.h +++ b/include/users.h @@ -39,7 +39,7 @@ class CoreExport User static std::list<User *> quitting_users; public: - typedef std::map<Anope::string, Anope::string> ModeList; + typedef std::map<Anope::string, ModeData> ModeList; protected: Anope::string vident; Anope::string ident; @@ -261,9 +261,9 @@ public: /** Set a mode internally on the user, the IRCd is not informed * @param setter who/what is setting the mode * @param um The user mode - * @param Param The param, if there is one + * @param data Data about the mode. */ - void SetModeInternal(const MessageSource &setter, UserMode *um, const Anope::string ¶m = ""); + void SetModeInternal(const MessageSource &setter, UserMode *um, const ModeData &data = {}); /** Remove a mode internally on the user, the IRCd is not informed * @param setter who/what is setting the mode @@ -274,16 +274,16 @@ public: /** Set a mode on the user * @param bi The client setting the mode * @param um The user mode - * @param Param Optional param for the mode + * @param data Data about the mode */ - void SetMode(BotInfo *bi, UserMode *um, const Anope::string ¶m = ""); + void SetMode(BotInfo *bi, UserMode *um, const ModeData &data = {}); /** Set a mode on the user * @param bi The client setting the mode * @param name The mode name - * @param Param Optional param for the mode + * @param data Data about the mode */ - void SetMode(BotInfo *bi, const Anope::string &name, const Anope::string ¶m = ""); + void SetMode(BotInfo *bi, const Anope::string &name, const ModeData &data = {}); /** Remove a mode on the user * @param bi The client setting the mode |