Project

General

Profile

$notify » History » Revision 4

Revision 3 (Per Amundsen, 01/31/2019 02:58 AM) → Revision 4/6 (Per Amundsen, 02/23/2023 06:38 PM)

_Added in 2.3_ 

 *$notify* 

 Returns [[$true]] if Notify is enabled, otherwise [[$false]]. 

 ----------------------------------------------------------------------------- 

 _Added in 1.9.0_ 

 *$notify(N|nick)* 

 Returns the Nth nickname in your Notify list. 

 *Parameters* 

 table(ktable). 
 |*Parameter*|*Description*| 
 | N<notextile>|</notextile>nick | N|nick - Nick or if N = 0, number of nicks, otherwise the Nth nick. | 

 *Properties* 

 table(ktable). 
 |*Property*|*Description*| 
 | .ison | - Returns [[$true]] if the nick is online, otherwise [[$false]]. | 
 | .note | - Returns note for this nick. | 
 | .sound | - Returns online beep/filename or [[$null]]. | 
 | .sound2 | - Returns offline beep/filename or [[$null]]. | 
 | .whois | - Returns [[$true]] if /whois for this nick is enabled, otherwise [[$false]]. | 
 | .addr | - Returns the hostname for the nick. | 
 | .network | - Returns the network name set for this nick. | 

 *Example* 

 <pre> 
 : Print number of notiy nicks. 
 //echo -ag $notify(0) 

 ; Print the first notify nick. 
 //echo -ag $notify(1) is $iif($notify(1).ison, online, offline) 
 </pre>