$nick » History » Revision 14
Revision 13 (Per Amundsen, 05/11/2019 11:19 PM) → Revision 14/15 (Per Amundsen, 12/13/2019 09:07 PM)
_Added in 1.5_ *$nick* Returns the nickname of the user associated with an [[Scripting_Events|event]]. _=$nick can be used to evaluate a nick for use in dcc chat windows._ *Example* <pre> ; Prrint the user associated with this event. on *:TEXT:*:*:echo -ag The user associated with this event is $nick </pre> ----------------------------------------------------------------------------- *$nick(#,N/nick,[qaohvr],[qaohvr])* Returns the Nth nickname in the channels nickname listbox on channel <notextile>#</notextile>. *Parameters* <notextile># - The channel where the Nicklist is.</notextile> N/nick - The nick to get, if N = 0 number of nicks, otherwise the Nth nick. [qaohvr] - Only include nicks with these channel modes. (optional) [qaohvr] - Exclude nicks with these channel modes. (optional) *Properties* .color - Returns the Nicklist color for this nick. .rgbcolor - Returns the Nicklist [[$rgb]] color for this nick. *(AdiIRC only)* (AdiIRC only) .pnick - Returns the nick in .@%+nick format. (This include every channel prefix this user has, not just the highest) <notextile>.cnick - Returns the nick in .@%+nick format. (Only the highest channel prefix is returned)</notextile> *(AdiIRC only)* returned, AdiIRC only)</notextile> .cmode - Returns the highest channel prefix for this nick. *(AdiIRC only)* (AdiIRC only) .idle - Returns the number of seconds this nick has been idle on this channel. .joined - Returns number of seconds since this user (or you) joined this channel. *(AdiIRC only)* (AdiIRC only) *Example* <pre> ; Print number of nicks in the channel '#test'. //echo -ag $nick(#test, 0) ; Print the 5th nick in the channel '#test'. //echo -ag $nick(#test, 5) </pre>