on connect lagtime

By RoninWarrior on Nov 08, 2005

paste into remotes section and on connect it should start the on pong lag check.

on *:CONNECT: {
  if ($ial !== $false) { ial on }
  if ( Undernet isin $network ) { put some commands here ? example below for dalnet }
  if ( Dalnet isin $network ) { echo -a type /chanserv help /nickserv help /memoserv help for services on dalnet }
  lagtime | titlebar [mIRC] lag $calc($calc($ticks - %lag.detect.time) / 1000) seconds
}

on 1:PONG:{ if ($2 == %lag.detect.time) { echo -a lag $calc($calc($ticks - %lag.detect.time) / 1000) seconds | unset %lag.detect.time | halt  } }

alias lagtime { set %lag.detect.time $ticks | .raw ping %lag.detect.time }

Comments

Sign in to comment.
Cafaro   -  Nov 11, 2005

Nice script

 Respond  
`Kazuma   -  Nov 09, 2005

Very nice.

 Respond  
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.