server Connects to the specified server |
||||||||||||||||||||||
Usage |
||||||||||||||||||||||
server [switches] [<server:string> [<port:uint>]] |
||||||||||||||||||||||
Description |
||||||||||||||||||||||
Attempts a connection to the specified <server>
on the specified <port>. If no <port> is specified
the default 6667 is used. If no <server> is specified,
the currently selected server from the server list is used
unless the -l switch is passed: in this case the last server
that was used in the IRC context is re-used.
If the <server> is a valid IPv6 address, the -i switch is implied. The <server> is added to the server list (if not already there) and set as current. If <server> is in the form id:<some_string> then <some_string> is interpreted as the server's internal ID (specified in the options dialog). This is useful when you need to force KVIrc to choose between multiple server entries with the same hostname and port stored in the database. Please note that this form causes most of the switches to have no effect since the entry in the database will override them. If no server entry with the specified identifier is found then an error will be generated and the connection attempt will stop. If <server> doesn't seem to be a valid IP address or hostname (i.e. it contains no dots) and it doesn't look to be in the form id:<some_string> then it is assumed to be a network name and if such a network is found in the server list then the best server for that network is contacted. (KVIrc tries to guess the round-robin (random) servers first). This behaviour can be forced by adding the net: prefix to the <server> (so it will work even if the network name contains a dot). The connection is attempted in the current IRC context. If there is already a connection in progress then it is brutally terminated. |
||||||||||||||||||||||
Switches |
||||||||||||||||||||||
|
||||||||||||||||||||||
Examples |
||||||||||||||||||||||
server irc.tin.it server -i irc6.ircd.it server -i ircd.stealth.net 6667 server irc.undernet.org 6665 server -n irc.openprojects.net server -c="join #kvirc" irc.stealth.net 6665 server -b=ppp0 irc.tin.it server undernet server id:mybouncerwithusername1 server id:mybouncerwithusername2 server net:under.net | ||||||||||||||||||||||