From WikiChip
On Ping - Events - mIRC
< mirc‎ | on events
Revision as of 01:08, 28 November 2017 by Maroonbells (talk | contribs) (minor add'l info)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The ON PING event is triggered when the server sends you a PING to see if you are still connected. The ON PING event does not trigger if mIRC's option is checked "Hide ping! pong! event"


ON <level>:PING:<commands>


<level>The level for the event to trigger.

<commands>The commands to be performed when the event listener's criteria is met.


Halt mIRC's default display, and echo the ping message to the active window:

ON *:PING: {
  echo -a Server PING: $1-

You can mimic mIRC's default display with:

ON ^*:PING:{ echo -ctgs info2 Ping? Pong! | haltdef }


Added: mIRC v5.6
Added on: 03 Jun 1999
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See Also[edit]