From WikiChip
Difference between revisions of "mirc/identifiers/$server"
(→Properties) |
m (Additional examples) |
||
Line 22: | Line 22: | ||
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''' | ||
+ | <pre>//echo -a $server(0,Dalnet)</pre> | ||
+ | |||
+ | Echo the domain name of the first server in the Dalnet group in the server list to the active window''' | ||
+ | <pre>//echo -a $server(1,Dalnet)</pre> | ||
== Compatibility == | == Compatibility == |
Revision as of 04:05, 3 September 2018
Commands & Identifiers
Basics
Events
Matching Tools
Data Storage
Control Structures
GUI Scripting
Sockets
Advanced Scripting
Additional Resources
Security
Other
$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
Synopsis
$server $server(N/address,[group])
Parameters
- N/address - references the Nth server or use the name you provided, if N = 0, returns total number of server.
- [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
- .pass - returns the server password
- .port - returns the port parameter
- .group - returns the group name
- .method - returns the login method (used in conjunction with /server -l)
- .methodpass - returns the password associated with the login method
Examples
Echo the active connection's server to the active window
//echo -a $server
Echo the number of Dalnet servers in the server list to the active window
//echo -a $server(0,Dalnet)
Echo the domain name of the first server in the Dalnet group in the server list to the active window
//echo -a $server(1,Dalnet)
Compatibility
Added: mIRC v3.5
Added on: 07 Aug 1995
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.
See Also
mIRC identifier list