1. Installation
   a) Meltsad
   b) Stats

2. Configuration

3. Commands

4. Example

5. History


1.Installation

	This package comes with the following files :
	
	README			Infos/History
	meltsad.tcl 		The config file
	meltsad_main.tcl	The main TCL-procs
	meltsad.words		Bad-words file
	meltsad.rnd		File for random kickmessages
	
	meltsad.php		Graphical-Stats
	meltsad_pic.php		The file, which creates the picture for the graphical stats
	connect.php		MySql connection file
	meltsad.sql		MySql "Ceate-Table-file"
	comic.ttf		Font for php-stats 

a) Meltsad:

	Copy the following files to your eggdrops/scripts-directory:
		+meltsad.tcl
		+meltsad_main.tcl 
		+meltsad.words
		+meltsad.rnd

	Open your eggdrop.conf with your favorite Text-Editor and append
		"source scripts/meltsad.tcl"
	at the end of the file
	
	Now you can choose to use the original config (meltsad.tcl) or to
	edit it to fit your preferences.
	If you want to edit it and you are not sure, which settings is for what,
	have a look at 2).

	After you edited meltsad.tcl (or not) rehash the bot.
	Join the channels you want to protect and type
		"!meltsad on"
	in each of them to activate the script.

	
b) Webstats

	Copy the following files a folder, which is accessable from your httpd.
		+connect.php
		+meltsad.php
		+meltsad_pic.php
		+comic.ttf

	Now, edit connect.php to work with your database.
	Edit meltsad.php + meltsad_pic.php. (Further instructions in the file)
	Execute meltsad.sql in mysql oder phpmyadmin.

	Wait for the first ban and have a look at meltsad.php ;)	


2. Configuration

	See meltsad.tcl
	
3. Commands

	All these commands can be used with pub-command !meltsad as well. (except del)
	
	Bot-masters are allowed to add/delete global+channel-specific bad strings
	Channel-masters are allowed to add/delete channel-specific bad strings

	WARNING: Dont fuck with the meltsad.words-file, if you dont know, what you are doing.
	If you eg. forget one | in the file, the bot will act arbitrarily


  ie.:  /msg yourbot meltsad add global *join and idle*(|KICKMESSAGE)             
	/msg yourbot meltsad add #mychan  *join and idle*(|KICKMESSAGE)
        !meltsad meltsad del ban-id (int)                                        
        /msg yourbot meltsad find join and idle <= returns the ban-id   
        /msg yourbot meltsad list                                                    
        /msg yourbot meltsad help                         
	/msg yourbot meltsad SOMETHING returns the antiad-commands

        !banned w - returns average bans per week (h/d/w/m)
	!version - returns the version :)

4. Example

	You did "!meltsad on" in your channel. the bot has op,blablalbalba
	Someone joins the chan and writes:
	
	<WoS|MrPayn> Du bist ein guter ET`ler der Clanless ist ? Auf dich 
	ist Verlass ? Du bist viel Online ? =]WoS[= sucht neue ET-Member join 
	[raute]wos-clan or /msg WoS|MrPayn !!! ~ tHx & sry4aMsg ~

	Your ev0l bot does:
	* |loki| sets mode: +b *!*S__MaxP@*.t-dialin.net
	* WoS|MrPayn was kicked by |loki| (Raute my ass!!!1111 10 mins Ban -311-)

	easy, huh ?:P

5. History
#################################################################
# New in 2.6: 
#
# Added option to ban for every /MSG and /NOTICE for better onjoin-detection
#
# Final release
#
#################################################################
#
# New in 2.5: FINAL [bold] ! [/bold]
#
# Added botnetsupport (option, to share the meltsad.words)
# Fixed meltsad-del
# Fixed random-kickmessage, where kickmessage could be ""
#
# Changed flood-check to internal eggdrop-trigger
# (A little bit faster? dunno...but i think :)

# Optimized meltsad.words again
# Increased doubleban-"reminder" (from 1 to 12 hours)
#
# Code cleanup
#
#################################################################
#
# New in 2.4:
#
# Fixed "invalid timerID"-error
#
#################################################################
#
# New in 2.3:
#
# Added !meltsad to public command
#  Channel-masters are now allowed to completely control their
#  specific "forbidden words" of their chans.
# Added "Invert"-Filter
# Added Random-kickmessage-support
# Optimized bad-words-file
#
#################################################################
#
# New in 2.2:
# 
# Added ban-enforce - String "enforce" in alt. kickmessage
# (will be banned, even they have +ovf (except +n))
# Added option to check onjoin every half hour
# Added small improvements (like filecheck)
# Added "Double-Ban" => bans with 2*bantime each time an advertiser advertises :)
#
# Removed unnecessary files from the tarball (will be done by filecheck)
#
#################################################################
#
# New in 2.1:
#
# Added easier channel-add (public-command !meltsad on|off)
# Added part-Trigger
# Added option to use $nick + $chan in kickmessages (check meltsad.words)
# Added chan-specific bad-strings (check meltsad.words again ;)
# Added putlog for warnings and bans
#
# Fixed small bug in notice-proc (errormessage when nick not found)
# Fixed good-words (case sensitive)
#
# Var cleanup
# Completly rewrote badwords-modify (changed trigger as well)
#
#################################################################
#
# New in 2.0:
#
# Added Repeat-Trigger
# Added Flood-Trigger (chanset flood-chan should be 0:0 )
# Added vars to set who is allowed to ad and whos not. (op/halfop/voice in chan)
# Added option to warn people before getting banned
# Added bother-advertiser-option ;)
#
# Optimized Goodwords (will be regsubed instead of marking the complete string as good)
# Changed from chan-string to chanset (.chanset #mychan +antiad) to observe a chan
# Misc improvements (bans faster now)
# Code cleanup
#
# Fixed ctcp-proc-error, when sending ctcp directly to the bot
# Fixed underlinetrigger...mistyped it
#
#################################################################
#
# New in 1.5ab:
#
# Fixed "can't read "chan_value": no such variable" when using tcl < 8.1
#
#################################################################
#
# New in 1.5 :
#
# Minor improvements
# Fixed scale in stats
# Fixed stats (choked on special nicks)
# Fixed bold in .words-file (finally :)
# Added underline-trigger
#
# Changed from ACTION to *. So all ctcps are triggered.
#
# Code cleanup
#
#################################################################
#
# New in 1.4 :
#
# Added Color-striping
# Fixed kick with "special-character-nicks"
#
# Added Option to upload the meltsad.stats to a ftp
#
#
#################################################################
#
# New in 1.3 :
#
# Added Bold-http and Bold-www to the bad words
# Added graphical stats (php/mysql needed)
#
#################################################################
#
# New in 1.2 :
#
# Added auto-chan-add in counter-file..no external edit needed anymore
# Added autodate for each channel. Every channel has its own date now.
# Added optional Part-message when the bot parts to check onjoin-ads
#
# Added anti-ad-stats for me :P (a notice to me, can be turned off)
# Added !version - Trigger
#
#################################################################
#
# New in 1.1 (advanced-!banned-release :) :
#
# Fixed stupid bug in the !banned-proc ("not active-output")
# Fixed bans/day (Divide by zero on the 1st day)
# Enhanced banned-output (!banned m/w/d/h)
# Reduced banned-output to 5 digits
#
# Added check for chan+o on bot
# FIXED BAD BAD SECURITY-BUG (Tcl-n00bs arent the ownij ;)
#
#################################################################
#
# New in 1.0 :
#
# Testing, testing, testing... (1 bug found...aaaand removed)
# Cleaned Badwords
#
#################################################################
#
# New in 0.99a : (Almost final version :)
#
# Added alternative Kickmessage for each "Bad Word"
#  Seperated by "|" in the word-file . If none is entered, the global kickmessage will be used.
# Added Kickmessagesupport for banadd
#  ie."/msg bot banadd *$decode*|Virus detected" or "/msg bot *$decode*" for global message
# Added "goodwords"...good huh ?
# Added "This are X bans per day" - text in !banned
# Added delay at msg/notice-ads - that the bot can gain +o correctly, before checking for onjoin-ads.
# Added fileexists-check
#
# Enhanced banhelp
#
# Fixed all? remaining bugs \o/
#
#################################################################
#
# New in 0.81 :
#
# Stored banproc in an extra proc
# Removed bug in globalban
# Onjoin-check now works...i slap myself for that - only worked in #plan-b ;)
# Added option to dont check action-msg
#
#################################################################
#
# New in 0.8 :
#
# Added option to let the bot part/join every hour to check onjoin-ads
# Added Msg-Trigger
# Cleaned up code again
# Cleaned up "bad words" - more efficient now
#
#################################################################
#
# New in 0.71 :
#
# Fixed ban for "bold-written" chans
# ( *^B*#* => \002 didnt worked, thx to army @ #tcl on q-net)
# Fixed Notice-proc
#
#################################################################
#
# New in 0.7 :
#
# Cleaned up some code
# Added option to report bans/kicks to a "homechan"
# Added Global-Bans (advertisers get banned on every chan meltad is active)
#
#################################################################
#
# New in 0.6 :
#
# Added binds for ACTIONS (/me) and NOTICEs
# Added option for kick only
#
#################################################################
#
# New in 0.5 :
#
# bantime can be used ;)
# fixed script Name :)
# few new "forbidden words" (ie. *#*#* if someone spams a chan several times)
# checks for +f and +o flags on bot (not only +ov on chan)
#
#################################################################
#
# < 0.5 :
#
# Dont remember. Tcl-noob-coding-stuff

#################################################################
