From WikiChip
Difference between revisions of "mirc/on events/on topic"
< mirc‎ | on events

m (Bot: adding missing title)
Line 1: Line 1:
{{mIRC Guide}}
+
{{mirc title|On Topic - Events}}
 
The '''ON TOPIC''' event triggers in a channel when the topic is changed.
 
The '''ON TOPIC''' event triggers in a channel when the topic is changed.
  

Revision as of 20:24, 15 June 2017

The ON TOPIC event triggers in a channel when the topic is changed.

This event fills $1- with the new channel topic text.

Synopsis

ON <level>:TOPIC:<#[,#]>:<commands>

Parameters

<level>The level for the event to trigger.

<#[,#]>The channel, or channels to target. Leave as # to target all channels.

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

Example

Send an action to a channel when the topic is changed:

ON *:TOPIC:#:action $chan approves of this new topic!

Compatibility

Added: mIRC v5.7
Added on: 02 Feb 2000
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also