From WikiChip
Difference between revisions of "mirc/identifiers/$server"
m |
|||
Line 1: | Line 1: | ||
− | {{mirc title|$server identifier}}'''$server''' | + | {{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 |
== Synopsis == | == Synopsis == | ||
− | <pre>$server</pre> | + | <pre>$server |
+ | $server(N/address,[group]) | ||
+ | </pre> | ||
== Parameters == | == 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 == | == Properties == | ||
− | * '''.method''' - login method (used in conjunction with {{mirc|/server|/server -l}}) | + | 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 {{mirc|/server|/server -l}}) | ||
+ | * '''.methodpass - returns the password associated with the login method | ||
== Examples == | == Examples == |
Revision as of 20:06, 2 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
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