From WikiChip
Editing mirc/identifiers/$server

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

This page supports semantic in-text annotations (e.g. "[[Is specified as::World Heritage Site]]") to build structured and queryable content provided by Semantic MediaWiki. For a comprehensive description on how to use annotations or the #ask parser function, please have a look at the getting started, in-text annotation, or inline queries help pages.

Latest revision Your text
Line 1: Line 1:
{{mirc title|$server identifier}}'''$server''' can be used to return the current server name if you don't provide any parameter, or informations about servers in your IRC server list if you provide one. You can use $server(-1) to get informations about the current connection without relying on the server list
+
'''$server''' is used to return the current server connection related to the window that is active when the identifier is accessed.
  
 
== Synopsis ==
 
== Synopsis ==
<pre>$server
+
<pre>$server</pre>
$server(N/address,[group])
 
</pre>
 
  
== Parameters ==
+
== Switches ==
* '''N/address''' - references the Nth server or use the name you provided, if N = 0, returns total number of server. If N = -1, it identifies the current connection
+
None
* '''[group]''' - If you specify a group name, returns only servers for that group
 
 
 
== Properties ==
 
If parameters are used, you can use the following properties:
 
* '''.desc''' - returns the description of that server (returns Random server if N = -1 and you're not connecting using the server list)
 
* '''.pass''' - returns the server password
 
* '''.port''' - returns the port parameter (same as $port if you're not using the server list)
 
* '''.group''' - returns the group name (returns the $network value if N = -1 and you're not connecting using the server list)
 
* '''.method''' - returns the login method (used in conjunction with {{mirc|/server|/server -l}})
 
* '''.methodpass''' - returns the password associated with the login method
 
* '''.keytype''' - returns the type/mode of the SSL certificate, "global" or "local", depending on if you're using the global certificate or a specific certificate
 
* '''.key''' - returns the the private certificate filename for SSL
 
* '''.itype''' - returns the type/mode of the user informations, "global" or "local", depending on if you're using the global user infos (nick, email, ident etc) or specific infos per server (via /server -i or by editing the server list)
 
* '''.nick''' - return the nickname associated with the connection (editing server list or /server -i), return $null if you connect without the server list and without /server -i
 
* '''.anick''' - return the alternative nickname associated with the connection (editing server list or /server -i), return $null if you connect without the server list and without /server -i
 
* '''.email''' - return the email address associated with the connection (editing server list or /server -i), return $null if you connect without the server list and without /server -i
 
* '''.user''' - return the username associated with the connection (editing server list or /server -i), return $null if you connect without the server list and without /server -i
 
* '''.encoding''' - return the encoding's ID associated with the connection (editing server list or /server -i), return 0 if you connect without the server list and without /server -encoding
 
* '''.connect''' - returns $true if the Other tab in the server definition has the "Connect to server" checkbox ticked, otherwise returns $false.
 
* '''.minimize''' - returns $true if the Other tab in the server definition has the "Minimize window" checkbox ticked, otherwise returns $false.
 
  
 
== Examples ==
 
== Examples ==
Echo the active connection's server to the active window'''
+
'''Echo the active connection's server to the active window'''
 
<pre>//echo -a $server</pre>
 
<pre>//echo -a $server</pre>
  
Echo the number of Dalnet servers in the server list to the active window'''
+
== Compatibility ==
<pre>//echo -a $server(0,Dalnet)</pre>
+
Added: mIRC v3.5
  
Echo the domain name of the first server in the Dalnet group in the server list to the active window'''
+
Added On: 07/08/95
<pre>//echo -a $server(1,Dalnet)</pre>
 
  
== Compatibility ==
+
== See Also ==
{{mIRC compatibility|3.5}}
+
[[$host identifier - mIRC|$host]]
  
== See Also ==
+
[[$ip identifier - mIRC|$ip]]
* {{mIRC|/server}}
 
 
{{mIRC identifier list}}
 
{{mIRC identifier list}}
  
[[Category:mIRC identifiers|server]]
+
[[Category:MIRC identifiers]]

Please note that all contributions to WikiChip may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see WikiChip:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)