mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 3
M
McSkaf Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Mar 2003
Posts: 3
How can I get a list of all the networks mIRC is currently connected to?

I'm writing a script to configure a new clan user. The network uses nickserv/chanserv. I want the script to connect to the network iff it isn't already connected to it, so it can register the users nick, etc.

TIA,
McSkaf

Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Code:
alias listnets {
   var %i = 1
   while (%i <= $scon(0)) {
      echo -a $scon(%i).network
      inc %i
   }
}

Joined: Mar 2003
Posts: 3
M
McSkaf Offline OP
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Mar 2003
Posts: 3
Thanks codemastr!

Joined: Dec 2002
Posts: 77
B
Babel fish
Offline
Babel fish
B
Joined: Dec 2002
Posts: 77
or...

scon -a echo -a $!network


Link Copied to Clipboard