Advertisement
SaNCaK

miRC Auto Ping

Jul 18th, 2020
2,329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.49 KB | None | 0 0
  1. on *:text:!ping*:*: { ctcp $nick ping }
  2. on *:text:lag*:*: { ctcp $nick ping }
  3. on *:text:*ping*:*: { ctcp $nick ping }
  4. on *:ctcpreply:PING*: {
  5.   if ($2 == $null) halt
  6.   else {
  7.     %pt = $ctime - $2
  8.     if (%pt < 0) set %pt 0
  9.     if (%pt > 35) .notice $nick 14 Your ping was real bad!:12 $duration($calc($ctime - $2)) 
  10.     .notice $nick 0,14 Your ping reply was 0,4 $str($chr(124),%pt) $+  $+ $str($chr(124),$calc(35 - ($ctime - $2))) 0,12 $duration($calc($ctime - $2))
  11.   }
  12.   halt
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement