Project

General

Profile

$servervars » History » Version 11

Per Amundsen, 02/23/2023 07:39 PM

1 1 Per Amundsen
_Added in 2.9_
2
3 5 Per Amundsen
*$servervars(N|key)*
4 1 Per Amundsen
5 6 Per Amundsen
Returns the Nth server variable discovered during raw 004 and 005 events.
6
7 9 Per Amundsen
_Raw 004 tokens are added as _usermodes, _channelmodes, _channelmodesargs._
8 1 Per Amundsen
9 10 Per Amundsen
_Raw 002 tokens are added as _ircdversion._
10
11 1 Per Amundsen
*Parameters*
12
13 11 Per Amundsen
table(ktable).
14
|*Parameter*|*Description*|
15
| N | If N = 0. number of variables, otherwise the Nth variable. |
16
| key | Returns the value from a key=value variable. |
17 1 Per Amundsen
18
*Properties*
19
20 11 Per Amundsen
table(ktable).
21
|*Property*|*Description*|
22
| .value | Returns the value for the variable if it was discovered as key=value. |
23
| .key | Returns the key/name of the variable. |
24 1 Per Amundsen
25
*Example*
26
27
<pre>
28
; Check for channel types
29
//echo -ag $iif($servervars(CHANTYPES),channel types for this server is $servervars(CHANTYPES),channel types was not found)
30
</pre>