$nick » History » Version 14
Per Amundsen, 12/13/2019 09:07 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 | 12 | Per Amundsen | _=$nick can be used to evaluate a nick for use in dcc chat windows._ |
| 8 | 11 | Per Amundsen | |
| 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 | 13 | Per Amundsen | *$nick(#,N/nick,[qaohvr],[qaohvr])* |
| 19 | 2 | Per Amundsen | |
| 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 | 13 | Per Amundsen | [qaohvr] - Only include nicks with these channel modes. (optional) |
| 27 | [qaohvr] - Exclude nicks with these channel modes. (optional) |
||
| 28 | 2 | Per Amundsen | |
| 29 | *Properties* |
||
| 30 | |||
| 31 | .color - Returns the Nicklist color for this nick. |
||
| 32 | 14 | Per Amundsen | .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 | 14 | Per Amundsen | <notextile>.cnick - Returns the nick in .@%+nick format. (Only the highest channel prefix is returned)</notextile> *(AdiIRC only)* |
| 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 | 14 | Per Amundsen | .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> |