$nick » History » Version 11
Per Amundsen, 12/31/2016 01:49 PM
| 1 | 1 | Per Amundsen | _Added in 1.5_ |
|---|---|---|---|
| 2 | |||
| 3 | *$nick* |
||
| 4 | |||
| 5 | Returns the nickname of the user associated with an [[Scripting_Events|event]]. |
||
| 6 | |||
| 7 | 11 | Per Amundsen | _=$nick can be used evaluate a nick for use in dcc chat windows._ |
| 8 | |||
| 9 | 1 | Per Amundsen | *Example* |
| 10 | |||
| 11 | <pre> |
||
| 12 | ; Prrint the user associated with this event. |
||
| 13 | on *:TEXT:*:*:echo -ag The user associated with this event is $nick |
||
| 14 | </pre> |
||
| 15 | 2 | Per Amundsen | |
| 16 | ----------------------------------------------------------------------------- |
||
| 17 | |||
| 18 | *$nick(#,N/nick,[aohvr],[aohvr])* |
||
| 19 | |||
| 20 | 4 | Per Amundsen | Returns the Nth nickname in the channels nickname listbox on channel <notextile>#</notextile>. |
| 21 | 2 | Per Amundsen | |
| 22 | *Parameters* |
||
| 23 | |||
| 24 | 5 | Per Amundsen | <notextile># - The channel where the Nicklist is.</notextile> |
| 25 | 2 | Per Amundsen | N/nick - The nick to get, if N = 0 number of nicks, otherwise the Nth nick. |
| 26 | [aohvr] - Only include nicks with these channel modes. (optional) |
||
| 27 | [aohvr] - Exclude nicks with these channel modes. (optional) |
||
| 28 | |||
| 29 | *Properties* |
||
| 30 | |||
| 31 | .color - Returns the Nicklist color for this nick. |
||
| 32 | 9 | Mr. BS | .rgbcolor - Returns the Nicklist [[$rgb]] color for this nick. (AdiIRC only) |
| 33 | 2 | Per Amundsen | .pnick - Returns the nick in .@%+nick format. (This include every channel prefix this user has, not just the highest) |
| 34 | 3 | Per Amundsen | <notextile>.cnick - Returns the nick in .@%+nick format. (Only the highest channel prefix is returned, AdiIRC only)</notextile> |
| 35 | .cmode - Returns the highest channel prefix for this nick. (AdiIRC only) |
||
| 36 | 2 | Per Amundsen | .idle - Returns the number of seconds this nick has been idle on this channel. |
| 37 | .joined - Returns number of seconds since this user (or you) joined this channel. (AdiIRC only) |
||
| 38 | 6 | Per Amundsen | |
| 39 | *Example* |
||
| 40 | |||
| 41 | <pre> |
||
| 42 | 10 | Per Amundsen | ; Print number of nicks in the channel '#test'. |
| 43 | 6 | Per Amundsen | //echo -ag $nick(#test, 0) |
| 44 | |||
| 45 | 10 | Per Amundsen | ; Print the 5th nick in the channel '#test'. |
| 46 | 6 | Per Amundsen | //echo -ag $nick(#test, 5) |
| 47 | </pre> |