i got a script ---> www.staticbox.com/checkrejoin.tcl but i would like it to do the following: keep track of people and their nicks and if they were kicked before (if so how many times)
it has to do the following:
A user joins the channel and gets kicked, he then rejoins under a different nick a few secs/mins later, the bot should wallchops it to the channel with the following "Meyba (~u3783436@194.red-217-217-67.user.auna.net) rejoined #ut 35 seconds ago Old Nick was: Dullahan, was kicked # of times" , kinda what i have now, but it doesnt display if the user was kicked. and i would like a fix for the elapsed time display.
i hope i have been clear about this, sorry for my crappy english :p
The requested URL /checkrejoin.tcl was not found on this server.
--------------------------------------------------------------------------- Apache/2.0.48 (Fedora) Server at www.staticbox.com Port 80
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
sorry about the link i cleaned up my website and moved all the stuff i didnt use to /old, link works now.
and in reply to demond:
its to keep track of the people who are known troublemakers, that way the channel staff knows if the person that joined is a problem case and that they should watch him closely or not.
but why would you need to ban troublemakers by nick?
unless you have large amount of users with the same username@host (webchat?), you should always ban by *!*username@maskedhost, or *!*@host, or *!*@maskedhost (for severe abusers) - and never by nick!*@*
and even if you have a webchat, it should be possible to configure it to generate unique usernames (most webchats encode user's IP as hex in the username)
i never said anything about nickbans, it should just check the nick (---> look at its host) and it has to return if the person was already kicked/banned before and how many times, and if possible the time/date he got kicked last time.
im a bit tired, but a small advise... if your script shall count kicks, it strongly recommened to contain a proc bound to "bind kick" ^^. I don't really know what a bind to part is usefull for anyway in this case .
I'm not sure if [getchanhost] will work on a kicked nick inside [bind kick] proc (it should, but if not, you need to [bind mode] for "+b"), but anyway, here's the stats collecting part:
bind kick - * foo
proc foo {n u h c t r} {
set m [maskhost $t![getchanhost $t $c]]
if [info exists ::kicks($m)] {
set c [lindex [set ::kicks($m)] 0]; incr c
set ::kicks($m) "$c [unixtime]"
} else {
set ::kicks($m) "1 [unixtime]"
}
}
it works fine like i said, but how would i make it only putlog the mask of the person that joined and is a known offender in. atm it putlogs every known hostmask.