summaryrefslogtreecommitdiff
path: root/include/protocol.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-02-27 13:38:20 +0000
committerSadie Powell <sadie@witchery.services>2024-02-27 13:40:47 +0000
commit9c80f9e34ef92e9344959ab81d20f2161b1e018c (patch)
treedab0cdec39c82b59d437df6758a7480526e5def7 /include/protocol.h
parentb5b3c744778ed0cbceb03f2f8dbbec33d2fd0e94 (diff)
Replace OnChannelUnban with an IRCDProto function.
This was added for (and is only used for) for unbanning users on UnrealIRCd which is an IRCd protocol function so it should be in IRCDProto.
Diffstat (limited to 'include/protocol.h')
-rw-r--r--include/protocol.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/protocol.h b/include/protocol.h
index 728988195..88bb94bfc 100644
--- a/include/protocol.h
+++ b/include/protocol.h
@@ -96,6 +96,9 @@ 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;
+
/* The maximum number of modes we are allowed to set with one MODE command */
unsigned MaxModes = 3;
@@ -271,6 +274,8 @@ public:
*/
virtual void SendOper(User *u);
+ virtual void SendClearBans(const MessageSource &user, Channel *c, User* u) { }
+
virtual void SendSASLMechanisms(std::vector<Anope::string> &) { }
virtual void SendSASLMessage(const SASL::Message &) { }
virtual void SendSVSLogin(const Anope::string &uid, NickAlias *na) { }