$servervars » History » Revision 7
Revision 6 (Per Amundsen, 02/02/2020 12:44 AM) → Revision 7/11 (Per Amundsen, 02/02/2020 12:45 AM)
_Added in 2.9_
*$servervars(N|key)*
Returns the Nth server variable discovered during raw 004 and 005 events.
_Raw 004 tokens are added as usermodes, channelmodes, channelmodeargs._
*Parameters*
N - If N = 0. number of variables, otherwise the Nth variable.
key - Returns the value from a key=value variable.
*Properties*
.value - Returns the value for the variable if it was discovered as key=value.
.key - Returns the key/name of the variable.
*Example*
<pre>
; Check for channel types
//echo -ag $iif($servervars(CHANTYPES),channel types for this server is $servervars(CHANTYPES),channel types was not found)
</pre>