$servervars » History » Version 8
Per Amundsen, 04/17/2020 07:34 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 | 8 | Per Amundsen | _Raw 004 tokens are added as usermodes, channelmodes, channelmodesargs._ |
| 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> |