$notify » History » Version 5
Per Amundsen, 08/03/2023 07:34 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 | 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 | 5 | Per Amundsen | | .awaymsg | Returns the specified away message if the user is away. | |
| 33 | | .gecos | The user realname/fullname. | |
||
| 34 | | .account | The user account name. ([[IRCv3]] feature) | |
||
| 35 | | .away | Returns [[$true]] if the user is away, otherwise [[$false]]. | |
||
| 36 | |||
| 37 | 1 | Per Amundsen | |
| 38 | *Example* |
||
| 39 | |||
| 40 | <pre> |
||
| 41 | : Print number of notiy nicks. |
||
| 42 | //echo -ag $notify(0) |
||
| 43 | |||
| 44 | ; Print the first notify nick. |
||
| 45 | //echo -ag $notify(1) is $iif($notify(1).ison, online, offline) |
||
| 46 | </pre> |