chanlimit.tcl Component Documentation
# chanlimit.tcl for netbots.tcl v3.15
# designed to work with eggdrop 1.5.3 or higher
# Johoho's Eggdrop Page - http://johoho.tuts.net/eggdrop/
# chanlimit.tcl copyright (c) 1999,2000 by Johoho <firstname.lastname@example.org>
# netbots.tcl copyright (c) 1998-2000 by slennox <email@example.com>
## chanlimit.tcl component script v3.35.0+johoho, 04.07.2000 ##
# thanks slennox for netbots.tcl
Please note that this component is fully compatible with netbots.tcl v3.10 - 3.35 by slennox
This script maintains a user limit (+l mode) in channels your bot is in. It is used primarily to help discourage and reduce the effects of large flood attacks. Additionally the scripts checks for other bot running the same chanlimit script. See the cl_bots setting for details.
.dolimit (m|m) - run limit checking on demand
.stoplimit (m|m) - temporarily stop limiting
.startlimit (m|m) - restart limiting
Further help is available via the netbots help system. Use .nethelp
To install this component properly you have to copy it to your netbots directory and add these lines to your netset.tcl conf:
set nb_component(chanlimit) 1
set cl_chans ""
set cl_echans ""
set cl_limit 10
set cl_grace 2
set cl_timer 10
set cl_log 1
set cl_bots ""
|cl_chans (default: "")|
|List of channels in which to activate limiting.|
|Valid settings: one channel like "#donkeys", a list of channels like "#donkeys #cows #pigs", or "" to activate on all channels (except those listed in cl_echans).|
|cl_echans (default: "")|
|List of channels in which to skip limiting.|
|Valid settings: one channel like "#donkeys", a list of channels like "#donkeys #cows #pigs", or "" to switch this off.|
|cl_limit (default: 10)|
|The limit to set. It will equal the number of users on the channel + this number - e.g. if there are 15 users on the channel and cl_limit is 10, the limit will be set to 25.|
|Valid settings: 1 or higher.|
|cl_grace (default: 2)|
|If the limit doesn't need to be changed by more than this number, don't bother setting a new limit. This reduces annoying, unnecessary limit changes.|
|Valid settings: 0 to disable, otherwise 1 or higher.|
|cl_timer (default: 10)|
|Frequency of checking whether a new limit needs to be set (in minutes). Setting this too low (e.g. less than 3 mins) isn't recommended, as it defeats the purpose if limiting. The more bots you have running chanlimit, the higher you should set this.|
|Valid settings: 1 or higher.|
|cl_log (default: 1)|
|Log limit changes?|
|Valid settings: 1 to enable, 0 to disable.|
|cl_bots (default: "")|
|This setting requires a space separated list of bots. If all of these bots are not on the channel, the bot will change limit itself. Please note that bots have to be in userfile and must have working hostmasks.|
|Valid settings: one bot like "stan", a list of bots like "stan guybrush", or "" to force the bot to change limit always by itself|
||I have a question, but it's not listed here.
||Feel free to contact the author at firstname.lastname@example.org!
You can contact me via E-Mail at email@example.com, at ICQ 2499577 (tell me who you are and what you want or I'll ignore you) or catch me on irc usually around 18-24 UTC+1 in #eggdrop. (IrcNET)
chanlimit.tcl is provided 'as is' and without warranty of any kind. You may use it own will as long as the author is NOT held responsible for ANY damage caused by the usage of this script, neither direct or indirect.
You may modify the script and all belonging files as long as you keep this copyright-text, include a short description of all changes, and send a copy to the author (e-mail: firstname.lastname@example.org).
©2000 by Johoho@IrcNET, 04 July 2000. CONTACT