diff options
author | Sadie Powell <sadie@witchery.services> | 2025-04-15 14:44:41 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2025-04-15 15:00:25 +0100 |
commit | 5c2fc1ceddd808df93e1aa477e5ddd7cc268f4a7 (patch) | |
tree | e61d15bf3b1e44a191a8c652c7c6700e189da79e /include/protocol.h | |
parent | d891f2bcbd1152a3845ea092e8233cd13e5624f8 (diff) |
Allow clearing other list modes using ClearBans.
Diffstat (limited to 'include/protocol.h')
-rw-r--r-- | include/protocol.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/protocol.h b/include/protocol.h index 5c71c2960..d590a5117 100644 --- a/include/protocol.h +++ b/include/protocol.h @@ -107,8 +107,8 @@ public: /* If this IRCd has unique ids, whether the IDs and nicknames are ambiguous */ bool AmbiguousID = false; - /** Can we ask the server to unban a user? */ - bool CanClearBans = false; + /** Can we ask the server to remove list modes matching a user? */ + std::set<Anope::string> CanClearModes; /** Can we send tag messages? */ bool CanTagMessage = false; @@ -304,7 +304,7 @@ public: */ virtual void SendOper(User *u); - virtual void SendClearBans(const MessageSource &user, Channel *c, User* u) { } + virtual void SendClearModes(const MessageSource &user, Channel *c, User* u, const Anope::string &mode) { } virtual bool IsNickValid(const Anope::string &); virtual bool IsChannelValid(const Anope::string &); |