This script simply calculates your server latency.
Command: /lag
Version: 1.3
Author: XTZGZoReX, credits to Fate.
Usage: /lag
Note: Does not work on PsyBNC, and might not on other bouncers, too. The script doesn't have any error handlers as of now.
Tip: In , you can specify -a, -s, and so on, like in a normal echo.
Enjoy!
alias lag {
set %ticks $ticks
.raw ping 123
}
on ^*:pong:{
if ( ( %ticks ) && ( *123 iswm $1- ) ) {
haltdef
echo $1 * Latency of $server $+ : $calc( ( $ticks - %ticks) / 1000 ) seconds
unset %ticks
}
}