Project

General

Profile

$ircv3caps » History » Version 5

Per Amundsen, 02/23/2023 01:51 PM

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 5 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| N | If N = 0, number of caps, otherwise the Nth cap. |
12
| name | The specific named cap. |
13 1 Per Amundsen
14
*Properties*
15
16 5 Per Amundsen
table(ktable).
17
|*Property*|*Description*|
18
| .name | The cap name. |
19
| .value | The cap value, if any. |
20
| .enabled | Returns [[$true]] if the cap is currently enabled, otherwise [[$false]]. |
21 1 Per Amundsen
22
*Example*
23
24
<pre>
25
//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
26
</pre>