Difference between revisions of "Category:Multi-server"

From Scriptwiki
Jump to: navigation, search
(perhaps like this, wouldnt know what more to say.)
Line 5: Line 5:
  
 
Every connection has a connection id value (cid). So you can either specify a connection using this cid or using the connection number (con).
 
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 ===
 
=== Commands ===
Scripts can be made to perform commands on specific server connections by using [[Scon|/scon]] or [[
+
Scripts can be made to perform commands on a specific server connection by using the [[Scon|/scon]] or [[Scid|/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).

Revision as of 15:29, 15 December 2005

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.