Project

General

Profile

$servervars » History » Version 10

Per Amundsen, 04/03/2022 01:16 AM

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
N - If N = 0. number of variables, otherwise the Nth variable.
14 5 Per Amundsen
key - Returns the value from a key=value variable.
15 1 Per Amundsen
16 2 Per Amundsen
*Properties*
17 1 Per Amundsen
18
.value - Returns the value for the variable if it was discovered as key=value.
19
.key - Returns the key/name of the variable.
20
21
*Example*
22
23
<pre>
24
; Check for channel types
25
//echo -ag $iif($servervars(CHANTYPES),channel types for this server is $servervars(CHANTYPES),channel types was not found)
26
</pre>