Category:Multi-server

From Scriptwiki
Revision as of 16:29, 15 December 2005 by Doomie (talk | contribs) (perhaps like this, wouldnt know what more to say.)

Jump to: navigation, search

Explanation

mIRC allows you to connect to more than one IRC server at a time. This means that scripts need to be multi-server aware in order to behave correctly when a user is connected to more than one server. The following commands and identifiers allow a script to handle multiple server connections.


Every connection has a connection id value (cid). So you can either specify a connection using this cid or using the connection number (con).

So each window that is created, such as a channel or query window, is associated with the connection id of the server where that window was opened.

Commands

Scripts can be made to perform commands on a specific server connection by using the /scon or /scid commands.

Identifiers

To receive the server connection id for the current script, you have to use $cid. Using $scid (or $scon), you can get the connection id and the value of identifiers (custom ones too) for this special connection (e.g. $me has other values for each connection probably).

Pages in category "Multi-server"

The following 7 pages are in this category, out of 7 total.