On ping: Difference between revisions

From Scriptwiki
Jump to navigation Jump to search
Doomie (talk | contribs)
No edit summary
 
mNo edit summary
 
Line 13: Line 13:


== See Also ==
== See Also ==
To react on pongs, take a look at the [[On_pong|On pong event]].
* [[On_pong|On pong event]] to react to pong event.




[[Category:Events]]
[[Category:Events]]

Latest revision as of 08:57, 2 July 2007

The on PING event triggers when a server sends you a PING message to see if you're still connected.

on <level>:PING:<commands>

Read access levels to get more info about the <level> field.

Note that you can't use this to intercept /pings to your own nickname, this is used internally by mIRC.

Example

on *:PING: {
 echo -a Got a ping from the server: $1-
}

This example would trigger on every ping and echo it to the active window.

See Also