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

## joaddons.tcl component script v2.00.1, 19.03.2000 ##

# History:
# 
# v1.00.0, 27.12.1999 - initial release, not public
# v2.00.0, 03.02.2000 - added lots of stuff and put it on homepage
# v2.00.1, 19.03.2000 - change header and readme :)

# Todo:
# 
# - add a check for /part msg colours
# - add caps support
# - add a command for changing color status manually (?)
# - unify code, so I don't need to write extra proc for each color task

# thanks to BASS, G'Quann, NML_375 and toot for their help. thanks slennox for netbots.tcl

Please note that this component is fully compatible with netbots.tcl by slennox

This components adds serveral commands to your bot to make local user and remote bot administration much easier.
This component contains two command blocks, local and remote.


#### DCC commands:
##Local block contains commands:

checkhosts <count>
  This command lists all users with or with more then <count> hosts.

checkpass 
  This command lists all users who haven't got a password set.

copyflags <#fromchan> <#tochan>
  This command lets you copy all user flags from <#fromchan> to <#tochan>.

mchattr <currentflags> <newflags> [#channel]
  This commands lets you chattr people by matching flags. If you specify a channel, it will copy only channel flags.

## Remote block contains commands:
This command block adds serveral commads to administrate userfile on a remote bot. Supported commands are +bot, +host, +user, -bot, -host, -user, chattr, botattr, die and restart. A command list is available via .nethelp in the joaddons.tcl section.


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

## netset.tcl
# joaddons.tcl
set nb_component(joaddons) 1
set ja_local 1
set ja_remote 1


## Settings Documentation:

ja_local  (default: 1)
  should the bot load local joaddons commands?
  Valid settings: 1 to enable, 0 to disable.

ja_remote  (default: 1)
  should the bot load remote joaddons commands?
  Valid settings: 1 to enable, 0 to disable.
