Project

General

Profile

$ircv3caps » History » Version 2

Per Amundsen, 12/19/2017 02:05 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 2 Per Amundsen
.enabled - Returns [[$true]] if the cap is currently enabled, otherwise [[$false]].
15 1 Per Amundsen
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>