i want script to ban user which said *http://www.netwars.ru/go.php?login=*
But i want to be able to change the forbidden word, bantime, banmask and reason.
help.
- create a variable list with words using set
- then use bind pubm
- match each word using foreach with string match or regexp against your list, import this list into your proc using global
i don't think that without any examples i can do it. even with your help. I don't want leatn tcl i just want to create one small script.... maybe something like this is already created... then show me plz.
bind pubm - "*http://www.netwars.ru/go.php?login=*" ban:word
proc ban:word {nick uhost hand chan text} {
global botnick
set reason "You use a forbiden word"
set time "60" # in minutes
set banmask *!*@[lindex [split $uhost @] 1] # will be *!*@ip
newchanban $chan $banmask $botnick $reason $time