mIRC Home    About    Download    Register    News    Help

Print Thread
Firewall On/Off without Modifying mirc.ini ? #188084 17/10/07 11:51 AM
Joined: Dec 2006
Posts: 2
F
Fubar162 Offline OP
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

Re: Firewall On/Off without Modifying mirc.ini ? [Re: Fubar162] #188085 17/10/07 11:57 AM
Joined: Jun 2006
Posts: 508
D
deegee Offline
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
See /help /firewall