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