Project

General

Profile

$ircv3caps » History » Version 4

Per Amundsen, 10/15/2021 01:17 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 3 Per Amundsen
.name - The cap name.
15 1 Per Amundsen
.value - The cap value, if any.
16 4 Per Amundsen
.enabled - Returns [[$true]] if the cap is currently enabled, otherwise [[$false]].
17 1 Per Amundsen
18
*Example*
19
20
<pre>
21
//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
22
</pre>