mIRC Home    About    Download    Register    News    Help

Print Thread
#39046 31/07/03 11:25 AM
Joined: Feb 2003
Posts: 11
C
Caligo Offline OP
Pikka bird
OP Offline
Pikka bird
C
Joined: Feb 2003
Posts: 11
I have a multi-network bot which had serious problems,

It had 3 status windows opened, the $cid for the 1st window was 1 which is normal, but the 2nd status window had $cid == 3 and the 3th status window had $cid == 4
so it skipped $cid 2, is this a bug or is it me??

#39047 31/07/03 05:38 PM
Joined: Dec 2002
Posts: 117
R
Vogon poet
Offline
Vogon poet
R
Joined: Dec 2002
Posts: 117
It is you actually laugh
$cid returns the connection id. Each $cid is associated with a server window and the $cid for that server never changes. Although $cid's seem to be 1,2,3,etc you should just assume they are random numbers that uniquely identify a connection.
In your case you probably connected four times, and then closed the connection with $cid 2, leaving you with $cid's 1,3 and 4.

The identifier you want to use is probably $scon(N), this returns the $cid for the Nth connection, see /help $scon.


$input(Me like stars, You too?)

Link Copied to Clipboard