From WikiChip
Editing mirc/local identifiers
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.
Latest revision | Your text | ||
Line 8: | Line 8: | ||
* {{mirc|$event}} - returns the name of the event | * {{mirc|$event}} - returns the name of the event | ||
* {{mirc|$halted}} - returns $true if the default actions for this event has been halted | * {{mirc|$halted}} - returns $true if the default actions for this event has been halted | ||
− | |||
− | |||
− | |||
=== IRC related events which involve an user === | === IRC related events which involve an user === | ||
* {{mirc|$address}} - returns the address of the user triggering the event in the format user@host | * {{mirc|$address}} - returns the address of the user triggering the event in the format user@host | ||
− | |||
* {{mirc|$fulladdress}} - returns the full address of the user triggering the event in the format nick!user@host | * {{mirc|$fulladdress}} - returns the full address of the user triggering the event in the format nick!user@host | ||
* {{mirc|$nick}} - returns the nickname of the user triggering the event | * {{mirc|$nick}} - returns the nickname of the user triggering the event | ||
* {{mirc|$rawmsg}} - returns the raw server line message | * {{mirc|$rawmsg}} - returns the raw server line message | ||
− | |||
* {{mirc|$site}} - return the part after the @ in $address | * {{mirc|$site}} - return the part after the @ in $address | ||
* {{mirc|$wildsite}} - returns the address of the user triggering the event in the format *!*@host | * {{mirc|$wildsite}} - returns the address of the user triggering the event in the format *!*@host | ||
− | |||
− | |||
− | |||
They apply to: | They apply to: | ||
Line 66: | Line 58: | ||
* {{mIRC|ctcp event}} | * {{mIRC|ctcp event}} | ||
− | There a few more local identifier related to IRC which exists only in specific | + | There a few more local identifier related to IRC which exists only in specific events: |
* {{mirc|$banmask}} - used inside {{mIRC|on ban}} and {{mIRC|on unban}}, returns the mask that is being banned/unbanned | * {{mirc|$banmask}} - used inside {{mIRC|on ban}} and {{mIRC|on unban}}, returns the mask that is being banned/unbanned | ||
Line 74: | 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}} | + | * {{mirc|$opnick}} - used inside {{mIRC|on op}} and {{mIRC|on deop}}, returns the nickname being opped/deopped |
− | * {{mirc|$vnick}} - used inside the {{mIRC|on voice}} and {{mIRC|on devoice}} | + | * {{mirc|$vnick}} - used inside the {{mIRC|on voice}} and {{mIRC|on devoice}} event, returns the name of the voiced/devoiced nickname |
− | |||
− | |||
− | |||
=== Non IRC events === | === Non IRC events === | ||
Line 85: | Line 74: | ||
* {{mirc|$filename}} - used inside {{mIRC|on filesent}}, {{mIRC|on getfail}}, {{mIRC|on midiend}}, {{mIRC|on waveend}}, {{mIRC|on songend}}, {{mIRC|on nosound}}, {{mIRC|on playend}}, {{mIRC|on mp3end}}, returns the filename that was involved | * {{mirc|$filename}} - used inside {{mIRC|on filesent}}, {{mIRC|on getfail}}, {{mIRC|on midiend}}, {{mIRC|on waveend}}, {{mIRC|on songend}}, {{mIRC|on nosound}}, {{mIRC|on playend}}, {{mIRC|on mp3end}}, returns the filename that was involved | ||
− | * {{mirc|$hotline}} - used inside {{mIRC|on hotlink}} | + | * {{mirc|$hotline}} - used inside {{mIRC|on hotlink}} |
− | * {{mirc|$hotlink}} - used inside {{mIRC|on hotlink}} | + | * {{mirc|$hotlink}} - used inside {{mIRC|on hotlink}} |
− | * {{mirc|$hotlinepos}} - used inside {{mIRC|on hotlink}} | + | * {{mirc|$hotlinepos}} - used inside {{mIRC|on hotlink}} |
* {{mirc|$parseline}} - used inside {{mIRC|on parseline}}, returns the line being parsed | * {{mirc|$parseline}} - used inside {{mIRC|on parseline}}, returns the line being parsed | ||
* {{mirc|$parsetype}} - used inside {{mIRC|on parseline}}, returns the type of message, in/out | * {{mirc|$parsetype}} - used inside {{mIRC|on parseline}}, returns the type of message, in/out | ||
* {{mirc|$parseutf}} - used inside {{mIRC|on parseline}}, returns $true if the line is going to be utf8 encoded/decoded after the event | * {{mirc|$parseutf}} - used inside {{mIRC|on parseline}}, returns $true if the line is going to be utf8 encoded/decoded after the event | ||
+ | * {{mirc|$signal}} - used inside {{mIRC|on signal}}, returns the name of the signal | ||
* {{mirc|$target}} - used inside events which accept a window parameter, returns the name of the window | * {{mirc|$target}} - used inside events which accept a window parameter, returns the name of the window | ||
* {{mIRC|$agentname}} - used inside {{mIRC|on agent}}, returns the name of the agent. | * {{mIRC|$agentname}} - used inside {{mIRC|on agent}}, returns the name of the agent. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== $1- === | === $1- === | ||
Line 119: | Line 88: | ||
Additionally '''$1-''' is filled with a message, applicable in the following events: | Additionally '''$1-''' is filled with a message, applicable in the following events: | ||
− | * {{mIRC|on text}}, {{mIRC|on action}}, {{mIRC|on chat}}, {{mIRC|on snotice}}, {{mIRC|on notice}} {{mIRC|on serv}}, {{mIRC|on open}}, {{mIRC|on ctcpreply}}, {{mIRC | + | * {{mIRC|on text}}, {{mIRC|on action}}, {{mIRC|on chat}}, {{mIRC|on snotice}}, {{mIRC|on notice}} {{mIRC|on serv}}, {{mIRC|on open}}, {{mIRC|on ctcpreply}}, {{mIRC|ctcp}} returns the text that was sent by the user |
* {{mIRC|on input}} - returns the text in the editbox | * {{mIRC|on input}} - returns the text in the editbox | ||
* {{mIRC|on kick}} - returns the kick message | * {{mIRC|on kick}} - returns the kick message |