Ping server script

By sercan386 on Jun 23, 2008

This command calculates the lag between you and the server, in milliseconds. type !ping and it'll msg it to the very first screen.

on *:INPUT:#: {
if ( $1 == !ping ) {
  if ( %pingor == $null ) {
    .set %pingor 0
    .ping $nick
    .timer22 -h 0 1 /inc %pingor 1
    .set -u5 %chan $chan
  }
  else /msg $chan 4stop spamming me...
  .halt
}
}
on *:pong: {
  if ( %pingor != $null ) {
    /msg %chan 2Currently $status with lag of %pingor milliseconds!
    .timer22 off
    .timer 1 2 /unset %pingor
    /halt
  }
}

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.