Quote:
The problem that I see (unless I'm imagining things) with xDaeMoN's suggestion, is that if you disconnect from a network, the $scon for that network gets dropped until it's needed, as the cid (as used by scid) does not get dropped, so if you have 4 connections, then drop the 2nd, now you have connection 1,3, & 4 (by cid), and scon(2) will return a $null value...for this situation I don't think it's going to matter, but just my 2 cents worth.


I disagree. If you disconnect from a connection, the $cid value is still there. Try having 4 connections then do //echo -a $scon(0) then disconnect 2, you'll see that mIRC still sees 4 connections.

The only problem I would see is the accurate number of queries on all the connections, even if one connection is disconnected & you have a query open, the script would still count it.