Im writing a code that will add rating to my members member rating (at my forum) when they join my chan.. Ive put a timer on so they can hop all the time.. only problem is I dont know how to put a timer on for differemt users.. currently I have the following:
bind join - *!*@*.* join_canal
set rater(timer) 10800
proc join_canal {nick uhost hand chan} {
global botnick
if { $nick != $botnick } {
if {[info exists activatetimer($nick)]} {
if { $activatetimer($nick) < $rater(timeset) } {
set url http://www.zero-force.net/irc.php?invalidjoin=$nick
set conn [http::geturl $url]
upvar #0 $conn state
putserv "PRIVMSG $chan : $nick joined again"
}
} else {
set activatetimer($nick) [clock seconds]
set url http://www.zero-force.net/irc.php?join=$nick
set conn [http::geturl $url]
upvar #0 $conn state
putserv "PRIVMSG $chan : $nick joined"
}
}
}
though now activatetimer($nick) doesnt seem to go well cuz it just takes the 'else' all the time.. so was wondering what would be the best way to do this.. putting a timer on each user who joins..