19.05.2000


splitdetect.tcl Component Documentation




# splitdetect.tcl for netbots.tcl v3.35
# designed to work with eggdrop 1.3.28 or higher
# Johoho's Eggdrop Page - http://johoho.tuts.net/eggdrop/
# splitdetect.tcl copyright (c) 1999,2000 by Johoho <johoho@hojo-net.de>
# netbots.tcl copyright (c) 1998-2000 by slennox <slennox@egghelp.org>

## splitdetect.tcl component script v2.02.1, 19.05.2000 ##

# History:
#
# v1.00.1, 26.12.1999 - initial release, not public
# v2.01.0, 14.01.2000 - public release with some fixed
# v2.01.1, 19.03.2000 - changed header and readme :)
# v2.02.0, 06.05.2000 - fixed a minor bug
# v2.02.1, 19.05.2000 - fixed a readme bug - thanks _eCs_

# thanks slennox for netbots.tcl

Please note that this component is fully compatible with netbots.tcl v3.15 - 3.35 by slennox

Index




Description

This script joins channel &servers and listens for netsplits. A list of current netsplits can be accessed via partyline. After a set time netsplits are marked as critical, since people can nick-collide and take server op via the other server.
This script was written for IrcNET, so it might be useless on other networks.


Commands MSG/DCC

DCC Commands

.netsplits (m|m) - show all current netsplits

Further help is available via the netbots help system. Use .nethelp


Installation

netset.tcl

To install this component properly you have to copy it to your netbots directory and add these lines to your netset.tcl conf:

# splitdetect.tcl
set nb_component(splitdetect) 1
set sd_criticaltime 25
set sd_lost 1440
set sd_ignore "rlinks.tu-ilmenau.de"
set sd_showall 1

Settings Documentation

sd_criticaltime (default: 25)
Set here a time limit after which a server is marked as critical. 25 should be fine for most needs, since IrcNET ND and CD timeouts after 30 minutes.
Valid settings: x minutes
 
sd_lost (default: 1440)
Set here a time period after which a netsplited server is 'lost'
Valid settings: x minutes
 
sd_ignore (default: "rlinks.tu-ilmenau.de")
Some test server or hubs regulary disconnect. Normally you don't want to see them, insert them in this list variable
Valid settings: one channel like "rlinks.tu-ilmenau.de", a list of channels like "rlinks.tu-ilmenau.de hub.irc.pl"
 
sd_showall (default: 1)
Do you want .netsplits to display all splitted servers or just the critical ones?
Valid settings: 1 to enable, 0 to disable.



FAQ

Q:  I have a question, but it's not listed here.
A:  Feel free to contact the author at johoho@hojo-net.de!



Contact

You can contact me via E-Mail at johoho@hojo-net.de, 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)


DISCLAIMER

splitdetect.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: johoho@hojo-net.de).



©2000 by Johoho@IrcNET, 19 May 2000. CONTACT