Project

General

Profile

$nick » History » Version 6

Per Amundsen, 10/04/2015 07:00 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
*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
.pnick - Returns the nick in .@%+nick format. (This include every channel prefix this user has, not just the highest)
31 3 Per Amundsen
<notextile>.cnick - Returns the nick in .@%+nick format. (Only the highest channel prefix is returned, AdiIRC only)</notextile>
32
.cmode - Returns the highest channel prefix for this nick. (AdiIRC only)
33 2 Per Amundsen
.idle - Returns the number of seconds this nick has been idle on this channel.
34
.joined - Returns number of seconds since this user (or you) joined this channel. (AdiIRC only)
35 6 Per Amundsen
36
*Example*
37
38
<pre>
39
; Print number of nicks in the channel '#test'
40
//echo -ag $nick(#test, 0)
41
42
; Print the 5th nick in the channel '#test'
43
//echo -ag $nick(#test, 5)
44
</pre>