Project

General

Profile

$server » History » Version 7

Per Amundsen, 12/13/2019 06:29 PM

1 1 Per Amundsen
_Added in 1.8.10_
2
3
*$server*
4
5
Returns the name of the currently connected server, otherwise [[$null]].
6
7
-----------------------------------------------------------------------------
8
9 3 Per Amundsen
_Added in 2.0_
10
11 1 Per Amundsen
*$server(N|address,[group])*
12
13 3 Per Amundsen
Returns the address of the Nth server in the server list.
14
15
_Only works when using the new server list._
16
17
*Parameters*
18
19
N|address - The server address to lookup, or if N = 0, number of servers, otherwise the Nth server.
20
[group] - if specified, only lookup servers from this network group.
21
22
*Properties*
23
24
.desc - Returns the server description.
25
.port -  Returns the server port(s).
26
.group - Returns the server network group.
27
.pass - Returns the server password.
28 7 Per Amundsen
.ssl - Returns [[$true]] if SSL is enabled, otherwise [[$false]]. *(AdiIRC only)*
29
.tls - Returns [[$true]] if TLS is enabled, otherwise [[$false]]. *(AdiIRC only)*
30 4 Per Amundsen
.method - Returns the [[login method]].
31 6 Per Amundsen
.methodpass - Returns the login method password.
32 3 Per Amundsen
33
*Example*
34
35
<pre>
36
//echo -ag There is $server(0) servers in your server list.
37
38
//echo -ag The first server in your server list is $server(1) $server(1).port
39
40
//echo -ag Freenode $iif($server(chat.freenode.net),is,is not) in your server list.
41
</pre>