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 66: Line 66:
 
* {{mIRC|ctcp event}}
 
* {{mIRC|ctcp event}}
  
There a few more local identifier related to IRC which exists only in specific IRC events/case:
+
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 78: Line 78:
 
* {{mirc|$cd}} - used inside the {{mIRC|on chat}} and {{mIRC|on serv}} events, returns the current directory of the connected user
 
* {{mirc|$cd}} - used inside the {{mIRC|on chat}} and {{mIRC|on serv}} events, returns the current directory of the connected user
 
* {{mIRC|$parseline}} {{mIRC|$parsetype}} {{mIRC|$parseutf}} - available in the {{mIRC|on parseline}} event, returns the raw line, the in/out type of direction, and whether or not mIRC is going to decode to utf8 respectively.
 
* {{mIRC|$parseline}} {{mIRC|$parsetype}} {{mIRC|$parseutf}} - available in the {{mIRC|on parseline}} event, returns the raw line, the in/out type of direction, and whether or not mIRC is going to decode to utf8 respectively.
* {{mirc|$msgstamp}} - returns UTC timestamp for a irc server message that has an IRCv3 @time prefix tag
 
  
 
=== Non IRC events ===
 
=== Non IRC events ===
Line 91: Line 90:
 
* {{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.
Line 111: Line 111:
 
* {{mirc|$raddress}} - used inside {{mirc|on dns}}, returns the resolved address
 
* {{mirc|$raddress}} - used inside {{mirc|on dns}}, returns the resolved address
 
* {{mirc|$naddress}} - used inside {{mirc|on dns}}, returns the address being resolved
 
* {{mirc|$naddress}} - used inside {{mirc|on dns}}, returns the address being resolved
* {{mirc|$modefirst}} - used inside any channel specific mode event (on op, on dehelp, but not on rawmode or on mode), returns $true if the mode you're dealing with is the first
+
* {{mirc|$modefirst}} -
* {{mirc|$modelast}} - used inside any channel specific mode event (on op, on dehelp, but not on rawmode or on mode), returns $true if the mode you're dealing with is the last
+
* {{mirc|$modelast}} -
* {{mirc|$mode}} - used typically inside {{mirc|on rawmode}}, returns the Nth nick affected by a mode.
+
* {{mirc|$mode}}
  
 
=== $1- ===
 
=== $1- ===
Line 119: Line 119:
 
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|ctcp_events|ctcp}} returns the text that was sent by the user
+
* {{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

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)