mIRC Home    About    Download    Register    News    Help

Print Thread
extract server address from server list #37718 21/07/03 06:29 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
How to extract only server address from the server.ini whether they belong to group or not? And output to a windows?

Re: extract server address from server list #37719 21/07/03 06:35 PM
Joined: Dec 2002
Posts: 774
T
theRat Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
var %i = 1, %j = $server(0)
while ( %i <= %j ) {
echo $server(%i)
inc %i
}


Code:
//if ( khaled isgod ) echo yes | else echo no
Re: extract server address from server list #37720 21/07/03 08:11 PM
Joined: Jan 2003
Posts: 127
L
littlecramp Offline OP
Vogon poet
OP Offline
Vogon poet
L
Joined: Jan 2003
Posts: 127
Oh crap! Didn't know it is so simple! Been using
if ($regex(netadd,$line(@loadnets,%i),^n\d+=.+SERVER:(.*))) and had problem filtering out unwanted characters