# server Connects to the specified server
Usage
    server [switches] [<server> [<port>]]
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
-b=<local address:string> | --bind-address=<local address:string>
Bind the outgoing connection to <local address>. The <local address> must be the IP address of a local interface suitable for contacting the remote <server>: this means that if you're going to use the -i switch, the <local address> must be an IPV6 address. On most systems it is also possible to use a local interface name as <local address>; in this way the interface address can be resolved at runtime by the KVIrc network engine.
-c=<command sequence:string> | --command=<command sequence:string>
The <command sequence> will be executed just after the login operations have been completed.
-f=<socket filter:string> | --filter=<socket filter:string>
Activates <socket filter> on the connection. A socket filter is a plugin that can adapt the IRC protocol to other existing protocols such as OpenNap. For plain IRC it is not needed.
-i | --ipv6
Makes the connection by using the IPV6 protocol (if supported by the executable)
-n | --new-context
Forces the connection to be attempted in a new IRC context instead of the current one.
-p=<password:string> | --password=<password:string>
Uses <password> to login to the server (the password will be stored in the server entry too).
-q=<nick:string> | --nickname=<nick:string>
Uses <nick> to login to the server (the nicknames will be stored in the server entry too).
-s | --ssl
Activates the SSL support for this connection
-u | --unused-context
Forces the connection to be attempted in the first IRC context that has no connection in progress. If all the IRC contexts have connections in progress then a new one is created.
-l | --last
When <server> and <port> are empty use the last
Syntax Specification
    server [switches] [<server:string> [<port:uint>]]
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

Index, Commands

KVIrc 3.4.2 Documentation
Generated by ports-i386 at Sun Mar 7 07:08:54 2010