Project

General

Profile

$server » History » Revision 6

Revision 5 (Per Amundsen, 09/29/2017 09:39 PM) → Revision 6/15 (Per Amundsen, 02/05/2019 10:15 AM)

_Added in 1.8.10_ 

 *$server* 

 Returns the name of the currently connected server, otherwise [[$null]]. 

 ----------------------------------------------------------------------------- 

 _Added in 2.0_ 

 *$server(N|address,[group])* 

 Returns the address of the Nth server in the server list. 

 _Only works when using the new server list._ 

 *Parameters* 

 N|address - The server address to lookup, or if N = 0, number of servers, otherwise the Nth server. 
 [group] - if specified, only lookup servers from this network group. 

 *Properties* 

 .desc - Returns the server description. 
 .port -    Returns the server port(s). 
 .group - Returns the server network group. 
 .pass - Returns the server password. 
 .ssl - Returns [[$true]] if SSL is enabled, otherwise [[$false]]. (AdiIRC only) 
 .tls - Returns [[$true]] if TLS is enabled, otherwise [[$false]]. (AdiIRC only) 
 .method - Returns the [[login method]]. 
 .methodpass - Returns the login method password. TODO 

 *Example* 

 <pre> 
 //echo -ag There is $server(0) servers in your server list. 

 //echo -ag The first server in your server list is $server(1) $server(1).port 

 //echo -ag Freenode $iif($server(chat.freenode.net),is,is not) in your server list. 
 </pre>