2021-04-05 17:29:49 +02:00
.. _plugin-Limiter:
Documentation for the Limiter plugin for Supybot
================================================
Purpose
-------
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
This plugin sets channel limits (MODE +l) based on
`` plugins.Limiter.MaximumExcess `` plus the current number of users
in the channel. This is useful to prevent flood attacks.
Usage
-----
2021-12-04 02:50:28 +01:00
2021-04-05 17:29:49 +02:00
In order to use this plugin, its config values need to be properly
setup. supybot.plugins.Limiter.enable needs to be set to True and
supybot.plugins.Limiter.{maximumExcess,minimumExcess} should be set to
values appropriate to your channel (if the defaults aren't satisfactory).
Once these are set, and someone enters/leaves the channel, Supybot will
start setting the proper +l modes.
2021-04-17 20:09:33 +02:00
.. _conf-Limiter:
2021-04-05 17:29:49 +02:00
Configuration
-------------
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Limiter.enable:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Limiter.enable
2021-12-04 03:19:12 +01:00
This config variable defaults to "False", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether the bot will maintain the channel limit to be slightly above the current number of people in the channel, in order to make clone/drone attacks harder.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Limiter.maximumExcess:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Limiter.maximumExcess
2021-12-04 03:19:12 +01:00
This config variable defaults to "10", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines the maximum number of free spots that will be saved when limits are being enforced. This should always be larger than supybot.plugins.Limiter.limit.minimumExcess.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Limiter.minimumExcess:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Limiter.minimumExcess
2021-12-04 03:19:12 +01:00
This config variable defaults to "5", is network-specific, and is channel-specific.
2021-04-05 17:29:49 +02:00
Determines the minimum number of free spots that will be saved when limits are being enforced. This should always be smaller than supybot.plugins.Limiter.limit.maximumExcess.
2021-04-17 20:09:33 +02:00
.. _conf-supybot.plugins.Limiter.public:
2021-04-22 00:29:15 +02:00
2021-04-05 17:29:49 +02:00
supybot.plugins.Limiter.public
2021-12-04 03:19:12 +01:00
This config variable defaults to "True", is not network-specific, and is not channel-specific.
2021-04-05 17:29:49 +02:00
Determines whether this plugin is publicly visible.