0 LIKES
Snippet
LagCheck by Protheus
In Category General IRC Posted by Snippets On 12/07/23
Lag check based on shideezhi's code
alias lagcheck { if (%hilag == $null) { set %hilag -1 } if (%lolag == $null) { set %lolag 999 } set %lagchan $chan .enable #lagcheck .raw $ticks } menu channel { Check lag:lagcheck } #lagcheck off raw 421:*: { var %lag = $calc(($ticks - $2) / 1000) if (%lag > %hilag) { set %hilag %lag } if (%lag < %lolag) { set %lolag %lag } msg %lagchan 3{14-3 %lag 14seconds. $& 14Highest:3 %hilag $+ s; 14Lowest:3 %lolag $+ s. 14-3} .disable #lagcheck haltdef } #lagcheck end on *:TEXT:*:#: { if $1 == .lag { /lagcheck } }
Comments 0
You must be logged in to comment.