# RPL_WHOISIDLE
set idle [clock format [expr 25200+[lindex $whodata 1]] -format "%T"]
The above line to calculate the idle time of a user in the whois response is incorrect and every effort I have tried to correct this has failed. I am definitely missing something. Any assistance with getting the correct formula will be greatly appreciated.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
bind raw - 317 raw:idle
proc raw:idle { f k a } {
putlog [bla [lindex [split $a] 2]]
return 0
}
proc bla s {return "[expr $s/3600]:[expr $s/60%60]:[expr $s%60]"}
dont know if this is what you were trying to do (im assuming your $whodata == $a in the example code above, in which case you would be adding 25200 to the target nickname of your whois.)
care to explain what that 25200 is for?