Project

General

Profile

$notify » History » Version 6

Per Amundsen, 08/03/2023 07:49 AM

1 2 Per Amundsen
_Added in 2.3_
2 1 Per Amundsen
3
*$notify*
4
5 2 Per Amundsen
Returns [[$true]] if Notify is enabled, otherwise [[$false]].
6 1 Per Amundsen
7
-----------------------------------------------------------------------------
8
9 2 Per Amundsen
_Added in 1.9.0_
10
11 6 Per Amundsen
*$notify(N|nick, [nf])*
12 1 Per Amundsen
13
Returns the Nth nickname in your Notify list.
14
15
*Parameters*
16
17 4 Per Amundsen
table(ktable).
18
|*Parameter*|*Description*|
19 1 Per Amundsen
| N<notextile>|</notextile>nick | Nick or if N = 0, number of nicks, otherwise the Nth nick. |
20 6 Per Amundsen
| [nf] | n = Include all online nicks, f = include all offline nicks. | 
21 1 Per Amundsen
22
*Properties*
23
24 4 Per Amundsen
table(ktable).
25
|*Property*|*Description*|
26
| .ison | Returns [[$true]] if the nick is online, otherwise [[$false]]. |
27
| .note | Returns note for this nick. |
28
| .sound | Returns online beep/filename or [[$null]]. |
29
| .sound2 | Returns offline beep/filename or [[$null]]. |
30
| .whois | Returns [[$true]] if /whois for this nick is enabled, otherwise [[$false]]. |
31
| .addr | Returns the hostname for the nick. |
32
| .network | Returns the network name set for this nick. |
33 5 Per Amundsen
| .awaymsg | Returns the specified away message if the user is away. |
34
| .gecos | The user realname/fullname. |
35
| .account | The user account name. ([[IRCv3]] feature) |
36
| .away | Returns [[$true]] if the user is away, otherwise [[$false]]. |
37
38 1 Per Amundsen
39
*Example*
40
41
<pre>
42
: Print number of notiy nicks.
43
//echo -ag $notify(0)
44
45
; Print the first notify nick.
46
//echo -ag $notify(1) is $iif($notify(1).ison, online, offline)
47
</pre>