Project

General

Profile

$ircv3caps » History » Version 1

Per Amundsen, 12/19/2017 02:04 AM

1 1 Per Amundsen
_Added in 3.0_
2
3
*$ircv3caps(N|name)*
4
5
Returns the Nth or the specific "IRCv3 cap":https://ircv3.net/specs/core/capability-negotiation-3.2.html available on the server.
6
7
*Parameters*
8
9
N - If N = 0, number of caps, otherwise the Nth cap.
10
name - The specific named cap.
11
12
*Properties*
13
14
.enabled - Returns [[$true]] if the cap is currently enabled, otherwise [[$false]]._
15
16
*Example*
17
18
<pre>
19
//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
20
</pre>