Thread: [Correct script] Top 5 idle.
View Single Post
Old 14-04-2007, 18:04   #2 (permalink)
arcade
TCB & Ratings projects Member, #Mythic representative
 
arcade's Avatar
 
Join Date: Jun 2004
Location: In fatza calculatorului!!
Age: 19
Posts: 218
Rep Power: 37
arcade is on a distinguished road
Send a message via Yahoo to arcade
Default

1. cand postezi un cod pune-l intre tagurile [code] pt a il face mai lizibil
2. incearca codul acesta:

Code:
bind pub - !idle pub:idle

proc pub:idle {nick host hand chan txt} {

foreach nick [chanlist $chan] {
set idle([getchanidle $nick $chan]) "$nick"
}
set values [lrange [lsort -decreasing [array names idle]] 0 4]
set i 1
foreach value $values {
if {![info exists idletop]} { set idletop "\002${i}.\002 $idle($value) $value" } 
else { lappend idletop "\002,${i}.\002 $idle($value) $value" }
incr i
}
puthelp "PRIVMSG $chan :Top 5 idlers: [join $idletop]"
}
this should work just fine. Enjoy!
__________________
Fuck oFF!

Last edited by arcade; 14-04-2007 at 23:38. Reason: multumiri lui lsnx pt ca a observat unele lucruri :P
arcade is offline   Reply With Quote