All pastes #784623 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-11-19 19:50 UTC
rendered paste body
zoro, in alias you put:

fping { 
  echo 4 -a $chr(91) $+ $time $+ $chr(93) Sending a ping ctcp to $1 $+ , waiting for reply...
  .raw privmsg $$1 : $+ $chr(1) $+ PING $ticks $+ $chr(1) 
}

in events you put:

on 1:CTCPREPLY:PING*: {
  %e = $ticks - $2  
  set %d $right(%e,3)
  set %l $len(%e)
  %y = %l - 3
  if ($left(%e,%y) == $null) set %c 0   
  else set %c $left(%e,%y)
  set %f [ [ %c ] $+ . $+ [ %d ] ]
  echo 4 -a $chr(91) $+ $time $+ $chr(93) Ctcp ping reply from $nick $+ : $+  %f secs
  halt
}