summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-07-10 20:32:08 +0100
committerPeter Powell <petpow@saberuk.com>2018-07-10 21:01:35 +0100
commit2a022cb9b7ed10d929beb96b6fcc2f1aa6a910f3 (patch)
tree9c1b733a6e65f8808a2fcf99cc611ab28b9d3785 /include
parent5585654df265bc37d547fa7738e35cc7ae7dacbb (diff)
Add a silent option to <options:restrictbannedusers>.
This is useful when dealing with spambots that switch method when they receive ERR_CANNOTSENDTOCHAN.
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h19
1 files changed, 15 insertions, 4 deletions
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