mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2006
Posts: 2
F
Bowl of petunias
OP Offline
Bowl of petunias
F
Joined: Dec 2006
Posts: 2
I'm trying to make a script that simply switches the use of the firewall on and off:

%socks = $readini("mirc.ini",socks,$1)
sockson {
writeini "mirc.ini" socks enabled yes
writeini "mirc.ini" socks port 9050
writeini "mirc.ini" socks method 5
writeini "mirc.ini" socks dccs no
writeini "mirc.ini" socks useip yes
writeini "mirc.ini" socks hostname localhost
echo 4 -a SOCKs Proxy Now in Use

}
%socks = $readini("mirc.ini",socks,$1)
socksoff {
writeini "mirc.ini" socks enabled no
writeini "mirc.ini" socks port 9050
writeini "mirc.ini" socks method 5
writeini "mirc.ini" socks dccs no
writeini "mirc.ini" socks useip yes
writeini "mirc.ini" socks hostname localhost
echo 4 -a SOCKs Proxy Not in use
}

I need to reload mirc.ini everytime I use this...is there any other way of editing the mirc config without editing mirc.ini itself or without requiring a refresh of the load of mirc.ini?
Thanks,
Fubar

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
See /help /firewall


Link Copied to Clipboard