i have some simple kick counter it count all
i use !test for testing it
set kc 0 is for made var kc
must make if exist of it
but when some one type !test is say kick 1
when some other do it say kick 2
i want this for each user difrent
so i can use this in my bot for count kick`s each user
without an sql or other db inplemention like write to file must be in cache
to reduce mem and cpu use and let it respond faster it is
already use an file db for chekking user host`s and i don't wana check 2
file db`s that go take time to mutch time
how can i do this it is an normal routine for mirc script to use tables
and i se no option to do this in tcl
this way incr var don't work good it count global and not kick`s per nick
Code: Select all
set kc 0
bind pub - "!test" pub:kctest
proc pub:kctest {nick uhost hand channel arg} {
if {$nick == "3" } {
putquick "PRIVMSG $channel : $nick this is kick $kc banned now"
set kc 0
} else {
incr kc
putquick "PRIVMSG $channel : $nick this is kick $nick "
}
return 0