$notify » History » Version 4
Per Amundsen, 02/23/2023 06:38 PM
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 | 1 | Per Amundsen | *$notify(N|nick)* |
12 | |||
13 | Returns the Nth nickname in your Notify list. |
||
14 | |||
15 | *Parameters* |
||
16 | |||
17 | 4 | Per Amundsen | table(ktable). |
18 | |*Parameter*|*Description*| |
||
19 | | N<notextile>|</notextile>nick | Nick or if N = 0, number of nicks, otherwise the Nth nick. | |
||
20 | 1 | Per Amundsen | |
21 | *Properties* |
||
22 | |||
23 | 4 | Per Amundsen | table(ktable). |
24 | |*Property*|*Description*| |
||
25 | | .ison | Returns [[$true]] if the nick is online, otherwise [[$false]]. | |
||
26 | | .note | Returns note for this nick. | |
||
27 | | .sound | Returns online beep/filename or [[$null]]. | |
||
28 | | .sound2 | Returns offline beep/filename or [[$null]]. | |
||
29 | | .whois | Returns [[$true]] if /whois for this nick is enabled, otherwise [[$false]]. | |
||
30 | | .addr | Returns the hostname for the nick. | |
||
31 | | .network | Returns the network name set for this nick. | |
||
32 | 1 | Per Amundsen | |
33 | *Example* |
||
34 | |||
35 | <pre> |
||
36 | : Print number of notiy nicks. |
||
37 | //echo -ag $notify(0) |
||
38 | |||
39 | ; Print the first notify nick. |
||
40 | //echo -ag $notify(1) is $iif($notify(1).ison, online, offline) |
||
41 | </pre> |