From WikiChip
Editing mirc/identifiers/$nick

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 1: Line 1:
{{mirc title|$nick identifier}}'''$nick''' can be called in two ways:
+
{{mirc title|$nick Identifier}}The '''$nick''' identifier will return the nickname associated with a triggered event.
 
 
# '''$nick''' will return the nickname associated with an IRC event.
 
# '''$nick(#channel,index)''' retrieves information about nicknames on a specific channel.
 
  
 +
This identifier can also be used to retrieve information about nicknames on a certain channel.
  
 
== Synopsis ==
 
== Synopsis ==
<pre>$nick</pre>
+
<pre>$nick[(#,N/nick,aohvr,aohvr)[.property]]</pre>
<pre>$nick(#,N/nick,aohvr,aohvr)</pre>
 
  
 
== Parameters ==
 
== Parameters ==
Line 32: Line 29:
 
|}
 
|}
  
Except for Type 'a' which has been defined as all users in the channel, channel modes given to users and pnick characters can also be used as nick types. This includes networks where channel owner is given mode +q and pnick character ! or ~, and superop is given mode +a and pnick character &. This next table assumes channel is at a network supporting the additional channel modes given to nicks.
 
  
 +
== Properties ==
 
{| class="wikitable" style="margin-left: 105px;"
 
{| class="wikitable" style="margin-left: 105px;"
 
|-
 
|-
! Add'l Types !! Description
+
! Type !! Description
|-
 
| '''q''' || Channel Owner having mode +q
 
|-
 
| '''~''' || Channel Owner having pnick character ~
 
 
|-
 
|-
| '''&''' || SuperOp (a.k.aa Protected Op)  having pnick character &
+
| <span style="margin-right: 15px;">'''pnick'''</span> || <span style="padding-left: 15px;">Display the target result with their elevation level, eg: @,+,%. Regular users display normal.</span>
 
|-
 
|-
| '''@''' || Operators
+
| <span style="margin-right: 15px;">'''idle'''</span> || <span style="padding-left: 15px;">Operators</span>
|-
 
| '''%''' || Helpers
 
|-
 
| '''+''' || Voiced
 
 
|}
 
|}
 
 
== Properties ==
 
* '''.pnick''' - Returns the target result with their elevation level, eg: @,+,%. Regular users display normal.
 
* '''.idle''' - Returns the current idle time for the nickname on the channel specified
 
* '''.color''' - Returns the color for that user as set up in the Nick color dialog
 
  
 
== Examples ==
 
== Examples ==
Line 111: Line 94:
  
 
[[File:$nick identifer example results - mIRC.png|Shows the example results.]]
 
[[File:$nick identifer example results - mIRC.png|Shows the example results.]]
 
'''Note:''' A nick can have several channel modes, and the nicklist will display only the highest level. To have an exact count of the nicks displaying a certain nick type, you should have the 3rd parameter be the list of all types of that level and greater, then have the 4th parameter be the nick types greater than the specified level. For example, networks supporting levels above @Operator also give +o. ~ChannelOwner is given modes +qo and &ProtectedOp is given mode +ao. Some networks allow the Founder to give +q to several other users, so the ~ prefix isn't always an indication that someone is the channel owner/founder.
 
 
<pre>//echo -a There are $nick($chan,0,~&o,~&) nicks at the @operator level excluding Owners and SuperOps</pre>
 
  
 
== Compatibility ==
 
== Compatibility ==
 
{{mIRC compatibility|2.1a}}
 
{{mIRC compatibility|2.1a}}
  
== See also ==
+
== See Also ==
 
* {{mIRC|$chan}}
 
* {{mIRC|$chan}}
* {{mIRC|on events}}
+
* [[On events - mIRC|ON Events]]
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:mIRC identifiers|nick]]
+
[[Category:MIRC identifiers]]

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)