From WikiChip
Difference between revisions of "mirc/on events/on ping"
m (Bot: Adding a template (template:mIRC on event list)) |
m (→Parameters: Link access levels) |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | The '''ON PING''' event is triggered when the server sends you a [[Ping - IRC|PING]] to see if you are still connected. | + | {{mirc title|On Ping - Events}} |
+ | The '''ON PING''' event is triggered when the server sends you a [[Ping - IRC|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'''" | ||
== Synopsis == | == Synopsis == | ||
Line 5: | Line 6: | ||
== Parameters == | == Parameters == | ||
− | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The | + | <span style="display: inline-block; width: 105px;">'''<level>'''</span>The corresponding {{mIRC|access levels}} for the event to trigger. |
<span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met. | <span style="display: inline-block; width: 105px;">'''<commands>'''</span>The commands to be performed when the event listener's criteria is met. | ||
Line 15: | Line 16: | ||
haltdef | haltdef | ||
}</source> | }</source> | ||
+ | |||
+ | You can mimic mIRC's default display with: | ||
+ | <source lang="mIRC">ON ^*:PING:{ echo -ctgs info2 Ping? Pong! | haltdef }</source> | ||
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|5.6}} | |
− | |||
− | |||
== See Also == | == See Also == | ||
Line 25: | Line 27: | ||
{{mIRC on event list}} | {{mIRC on event list}} | ||
− | [[Category: | + | [[Category:mIRC on events|ping]] |
Latest revision as of 07:00, 6 February 2024
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
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"
Synopsis[edit]
ON <level>:PING:<commands>
Parameters[edit]
<level>The corresponding access levels for the event to trigger.
<commands>The commands to be performed when the event listener's criteria is met.
Example[edit]
Halt mIRC's default display, and echo the ping message to the active window:
ON *:PING: { echo -a Server PING: $1- haltdef }
You can mimic mIRC's default display with:
ON ^*:PING:{ echo -ctgs info2 Ping? Pong! | haltdef }
Compatibility[edit]
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]
mIRC on event list