From 2a022cb9b7ed10d929beb96b6fcc2f1aa6a910f3 Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 10 Jul 2018 20:32:08 +0100 Subject: Add a silent option to . This is useful when dealing with spambots that switch method when they receive ERR_CANNOTSENDTOCHAN. --- include/configreader.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/configreader.h b/include/configreader.h index be5c582b9..a82420b4e 100644 --- a/include/configreader.h +++ b/include/configreader.h @@ -210,6 +210,19 @@ class CoreExport ServerConfig void CrossCheckConnectBlocks(ServerConfig* current); public: + /** How to treat a user in a channel who is banned. */ + enum BannedUserTreatment + { + /** Don't treat a banned user any different to normal. */ + BUT_NORMAL, + + /** Restrict the actions of a banned user. */ + BUT_RESTRICT_SILENT, + + /** Restrict the actions of a banned user and notify them of their treatment. */ + BUT_RESTRICT_NOTIFY + }; + class ServerPaths { public: @@ -330,10 +343,8 @@ class CoreExport ServerConfig */ bool GenericOper; - /** If this value is true, banned users (+b, not extbans) will not be able to change nick - * if banned on any channel, nor to message them. - */ - bool RestrictBannedUsers; + /** How to treat a user in a channel who is banned. */ + BannedUserTreatment RestrictBannedUsers; /** The size of the read() buffer in the user * handling code, used to read data into a user's -- cgit v1.2.3