From WikiChip
Editing mirc/commands/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 3: Line 3:
  
 
== Synopsis ==
 
== Synopsis ==
Define servers:
 
 
  /server -sar [server] [-p port] [-g group] [-w password] [-d description]] [-l [method [password]]] [-key [filename.pem]] [-keytype <global|local>] [-i nick anick email name] [-itype local|global] [-encoding [CodePageNumber]]
 
  /server -sar [server] [-p port] [-g group] [-w password] [-d description]] [-l [method [password]]] [-key [filename.pem]] [-keytype <global|local>] [-i nick anick email name] [-itype local|global] [-encoding [CodePageNumber]]
  
Connect to a server:
 
 
  /server [-46demnpfocztu] <server/groupname/N> [ -p port] [-l method [password]] [-key file] [-i nick anick email name] [-jn #channel pass]
 
  /server [-46demnpfocztu] <server/groupname/N> [ -p port] [-l method [password]] [-key file] [-i nick anick email name] [-jn #channel pass]
  
 
== Switches ==
 
== Switches ==
  
If any of the -sar switches are used indicating that you want to define a server, the listed -switchnames are valid. Also see more details in the later section describing -sar parameters:
+
If any of the -sar switches are used, the listed -switchnames are valid. Also see more details in the later section describing -sar parameters:
  
 
* '''-s''' - sorts the servers list
 
* '''-s''' - sorts the servers list
 
* '''-a''' - adds a server to the server list, if it exists, it is updated: mIRC first tries to update a match against the -d 'description' if that switch is used, before trying to match against the SERVER string. This means there's no way to add/update a new item to give it -d "Random Server" because it will instead match against the 1st serverlist item matching that description, even if the server address and -g GROUP do not match. To determine whether an item was added or updated, you can either look at the result string, or can use $ini($readini($mircini,n,files,servers),servers,0) to see whether the item count in your serverlist changed or not.
 
* '''-a''' - adds a server to the server list, if it exists, it is updated: mIRC first tries to update a match against the -d 'description' if that switch is used, before trying to match against the SERVER string. This means there's no way to add/update a new item to give it -d "Random Server" because it will instead match against the 1st serverlist item matching that description, even if the server address and -g GROUP do not match. To determine whether an item was added or updated, you can either look at the result string, or can use $ini($readini($mircini,n,files,servers),servers,0) to see whether the item count in your serverlist changed or not.
 
* '''-r''' - removes a server from the server list. This does not try to match against the -d description the way -a does.
 
* '''-r''' - removes a server from the server list. This does not try to match against the -d description the way -a does.
 
 
* '''-g''' - changes the group.
 
* '''-g''' - changes the group.
 
* '''-w''' - changes the server password.
 
* '''-w''' - changes the server password.
Line 28: Line 25:
 
* '''-encoding''' - allows overriding the default behavior of interpreting server messages as UTF8 encoding, and instead using a codepage number.
 
* '''-encoding''' - allows overriding the default behavior of interpreting server messages as UTF8 encoding, and instead using a codepage number.
  
 
+
Otherwise:
Otherwise when you are initiating a connection:
 
 
* '''-4''' - allows a connection to an IPv4 server
 
* '''-4''' - allows a connection to an IPv4 server
 
* '''-6''' - allows a connection to an IPv6 server
 
* '''-6''' - allows a connection to an IPv6 server

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)