Basic Lag Calculation Script

By XTZGZoReX on Jan 19, 2008

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
  }
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.