From 5c2fc1ceddd808df93e1aa477e5ddd7cc268f4a7 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 15 Apr 2025 14:44:41 +0100 Subject: Allow clearing other list modes using ClearBans. --- include/protocol.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') 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 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 &); -- cgit