Project

General

Profile

$ircv3caps » History » Revision 3

Revision 2 (Per Amundsen, 12/19/2017 02:05 AM) → Revision 3/5 (Per Amundsen, 10/15/2021 01:17 AM)

_Added in 3.0_ 

 *$ircv3caps(N|name)* 

 Returns the Nth or the specific "IRCv3 cap":https://ircv3.net/specs/core/capability-negotiation-3.2.html available on the server. 

 *Parameters* 

 N - If N = 0, number of caps, otherwise the Nth cap. 
 name - The specific named cap. 

 *Properties* 

 .name - The cap name. 
 .enabled - Returns [[$true]] if the cap is currently enabled, otherwise [[$false]]. 
 .value - The cap value, if any. 

 *Example* 

 <pre> 
 //echo -ag There are $ircv3caps(0) caps available, the first one is $ircv3caps(1) and $iif($ircv3caps(1).enabled, it's, it's not) enabled 
 </pre>