Code: Select all
# created by Yxaaaaaaa ( http://www.egghelp-bg.com
#
## Kakuv da e reasona, kogato bota nakazva narushitelq, koito go e bannal
set ebreason "Ban me?That option is forbidden for you!"
## Kakuv da e reasona, kogato bota nakazva narushitelq, koito go e kiknal
set ekreason "Kick me?That option is forbidden for you!"
## Potrebiteli s kakuv flag da ne bydat nakazvani
set ekbflag "W"
bind mode - *-o* e:dprot
proc e:dprot {n u h c m t} {
regsub {~} $u "" u
set banmask "*!*$u"
if {[matchattr $h $::ekbflag]} return
if {[string match "$t" "$::botname"]} {
putquick "PRIVMSG CS :akick $c add $n $::ebreason"
newchanban $c $banmask Prot "nedei me deopva" 10
putquick "KICK $c $n :nedei me deopva"
}
}
bind mode - *+b* e:bprot
proc e:bprot {n u h c m w} {
regsub {~} $u "" u
set banmask "*!*$u"
if {[matchattr $h $::ekbflag]} return
if {[string match "$w" "$::botname"]} {
putquick "PRIVMSG CS :akick $c add $n $::ebreason"
putquick "PRIVMSG CS :unban $c"
newchanban $c $banmask Prot "nedei me banva" 30
putquick "KICK $c $n :nedei me banva"
}
}
bind kick - * e:kprot
proc e:kprot {n u h c w r} {
regsub {~} $u "" u
set banmask "*!*$u"
if {[matchattr $h $::ekbflag]} return
if {$w == $::botnick} {
putquick "PRIVMSG CS :akick $c add $n $::ekreason"
newchanban $c $banmask Prot "nedei me kickva" 20
putquick "KICK $c $n :nedei me kickva"
}
}
putlog "TCL | TCM"