Previous Section  < Day Day Up >  Next Section

Hack 25 Connect to Multiple Servers

figs/beginner.gif figs/hack25.gif

Use more than one IRC network at a time from a single IRC client.

With an ever-increasing number of IRC servers and networks, the chances are that you're going to want to connect to more than one at a time at some point. Most IRC clients these days have the ability to handle connections to multiple servers at the same time. This hack explains how to do it in some of the more popular clients.

4.10.1 mIRC

To connect to an additional server in mIRC, bring up the server-selection dialog by clicking FileSelect Server. Choose the new server you want to connect to from the IRC Network and IRC Server drop-down boxes. Ensure that the New Server Window checkbox is checked, and then click Connect to Server, as shown in Figure 4-22.

Figure 4-22. Connecting to multiple servers in mIRC
figs/irch_0422.gif


A new status window will be opened for the new server, into which you can type /join commands and so on as necessary. Figure 4-23 shows mIRC connected to two IRC servers: freenode and MAGnet. The client has joined the #irchacks channel on the freenode server.

Figure 4-23. A mIRC client connected to multiple servers
figs/irch_0423.gif


Type /server -m new_server for a quicker method of adding a new server in mIRC. The -m flag tells mIRC to create a new connection rather than to nuke the existing one. So to create another connection to the freenode IRC network, you would type:

/server -m irc.freenode.net

You can also use the -j flag to get mIRC to automatically join a channel when it has connected to the server:

/server -m irc.freenode.net -j  #irchacks 

To join more than one channel, you must specify their names as a comma-separated list, for example:

/server -m irc.freenode.net -j  #irchacks,#java,#jibble 

4.10.2 XChat

To open a connection to another server in XChat, bring up the Server List dialog by clicking X-ChatServer List. Choose the new server or network you want to connect to from the Networks list, and then click Connect in a New Tab, as shown in Figure 4-24.

Figure 4-24. Server List dialog in XChat
figs/irch_0424.gif


A new tab will be opened for the new server, into which you can type all the necessary /join commands again, as shown in Figure 4-25.

Figure 4-25. XChat connected to two servers
figs/irch_0425.gif


4.10.3 irssi

To connect to a new server in irssi, simply enter the command /server servername, where servername is the domain name of the new server.

Steve Jolly

    Previous Section  < Day Day Up >  Next Section