================================================================================
                   Undernet Channel Service Management Script
================================================================================

    This script mostly manage authentication to X (UnderNet Channel Service).

    if you like this script you can send me a post card for collecting card 
    around the world :)

                                Mr Yann Richard
                               1 BD mile Combes
                                  35200 Rennes
                                     FRANCE
                            -----------------------

    UndernetCS  : http://undernetcs.tuxfamily.org/
    Bug tracker : http://undernetcs.tuxfamily.org/bugs/
    Downloads   : http://download.tuxfamily.org/undernetcs/
    Online Help : irc://eu.undernet.org/ircpaladin 
                  #IRCPaladin / UnderNet
                  You can ask in english or french

    Ideas, comments ?

        Ask on IRC or post a request feature in the bug tracker.

Requierement:
    o Eggdrop 1.6.x
    o inidb.tcl
    o Tcl 8.0 or higher.

Features:

    o Multi-channels support: Each channel's owner can add, remove, active, 
      unactive its channel.
    o Global owner(s) can set eggdrop's username and password for Channel
      Service and delay which the eggdrop verifies authentication status.
    o Script manages SUSPEND reply. In this case the eggdrop verifies each 'y'
      min if the access for the channel is already suspended. This feature
      prevents the eggdrop from using too many bandwidth, and flooding X. Each
      channel owner can set 'y' to what he wants.
    o Script manage AUTOMODE value, this prevents the eggdrop from sending 'OP' 
      request to X while it isn't necessary.
    o Optimising for all messages which are sent to X and fixing more priority 
      to 'LOGIN' and 'OP' messages, lesser to 'DEOP', 'BAN', 'UNBAN', 
      'CLEARMODE', 'KICK' and  'INVITE'. Other messages are sent in
      the puthelp queue.
      This feature uses the differents eggdrop's queues and the -next option of 
      queues.
    o Verifies before sending a command to X, that eggdrop have a sufficient
      access level to perform this command. (ie. OP command needs access level 
      100 min)
    o All Need-* are managed by the script, need-invite, key, unban, limit
      are revolved by sending an invite request to X. need-op by op request ..
    o Managing RAW 401 reply, no such nick/channel and uses it to know if
      a request to X was lost.
    o The script prohibits the use of the command .msg to X.for security
      reason.
    o When eggdrop is deopped by a user who is not a global master, eggdrop 
      sends a request to X for OP him and DEOP the agressor. If this user is 
      unknown, the eggdrop adds a BAN level 25 to X's banlist.

    See UndernetCS.doc for more info about how to use it. See INSTALL file
    to know how to install it.

-------------------------------------------------------------------------------
Copyright (c) 2001-2009 Yann Richard.
-------------------------------------------------------------------------------
AUTHOR   : Yann Richard
NICK     : Ze
MEET ME  : On *UnderNet.org: #IRCPaladin, #Montpellier, #Eggdrop.Fr, #Eggdrop
MAIL     : ze(arobase)nbox.org
URL      : https://nbox.org/ze/
GREETS   : o Special thanks to SnAKes, Maz, KURGAN, Toufou for hosting and 
             for supporting me. Vraiment un grand meri les gars ! @#&%$!!
           o Trajedia Del Arte, Montpellier, France (R.I.P.)
             Ex-Official supplier of 'Cervoise' (Beer, lemon syrup and white wine).
           o All the Pipoteam in which I'am a member. Thx Bozoo to support
             me when I have my 'ragnagna' :)))
             - Pipoteam web page: http://www.pipoteam.com/
-------------------------------------------------------------------------------
