$servervars » History » Version 6
Per Amundsen, 02/02/2020 12:44 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 | _Raw 004 are added as usermodes, channelmodes, channelmodeargs._ |
||
8 | 1 | Per Amundsen | |
9 | *Parameters* |
||
10 | |||
11 | N - If N = 0. number of variables, otherwise the Nth variable. |
||
12 | 5 | Per Amundsen | key - Returns the value from a key=value variable. |
13 | 1 | Per Amundsen | |
14 | 2 | Per Amundsen | *Properties* |
15 | 1 | Per Amundsen | |
16 | .value - Returns the value for the variable if it was discovered as key=value. |
||
17 | .key - Returns the key/name of the variable. |
||
18 | |||
19 | *Example* |
||
20 | |||
21 | <pre> |
||
22 | ; Check for channel types |
||
23 | //echo -ag $iif($servervars(CHANTYPES),channel types for this server is $servervars(CHANTYPES),channel types was not found) |
||
24 | </pre> |