From WikiChip
Difference between revisions of "mirc/local identifiers"
< mirc

($1-)
(IRC related events which involve an user)
Line 66: Line 66:
 
* {{mirc|$knick}} - used inside {{mIRC|on kick}}, returns the nickname being kicked
 
* {{mirc|$knick}} - used inside {{mIRC|on kick}}, returns the nickname being kicked
 
* {{mirc|$newnick}} - used inside {{mIRC|on nick}}, returns the new nickname
 
* {{mirc|$newnick}} - used inside {{mIRC|on nick}}, returns the new nickname
* {{mirc|$opnick}} - used inside {{mIRC|on op}} and {{mIRC|on deop}}, returns the nickname being opped/deopped
+
* {{mirc|$opnick}} - used inside {{mIRC|on op}}, {{mIRC|on deop}}, {{mIRC|on owner}} and {{mIRC|on deowner}}, returns the nickname being opped/deopped/owner'd/deowner'd
 
* {{mirc|$vnick}} - used inside the {{mIRC|on voice}} and {{mIRC|on devoice}} event, returns the name of the voiced/devoiced nickname
 
* {{mirc|$vnick}} - used inside the {{mIRC|on voice}} and {{mIRC|on devoice}} event, returns the name of the voiced/devoiced nickname
  

Revision as of 07:21, 13 December 2018

Local identifiers are identifiers which only function inside specific events. Attempting to call such identifiers from outside of their designed scope might have undesired results or might simply return $null.

Below is a list of all the local identifiers for all events.

All events

  • $event - returns the name of the event
  • $halted - returns $true if the default actions for this event has been halted

IRC related events which involve an user

  • $address - returns the address of the user triggering the event in the format user@host
  • $fulladdress - returns the full address of the user triggering the event in the format nick!user@host
  • $nick - returns the nickname of the user triggering the event
  • $rawmsg - returns the raw server line message
  • $site - return the part after the @ in $address
  • $wildsite - returns the address of the user triggering the event in the format *!*@host

They apply to:

There a few more local identifier related to IRC which exists only in specific events:

Non IRC events

Here is a list for non IRC events:

$1-

Additionally $1- is filled with a message, applicable in the following events: