mIRC Home    About    Download    Register    News    Help

Print Thread
#97675 15/09/04 09:00 AM
Joined: Sep 2004
Posts: 5
I
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
I
Joined: Sep 2004
Posts: 5
Very simple,

/localinfo -u = should show text, and set it properly
/.localinfo -u = should not show anything, but set it right.

This is not the case currently and /.localinfo -u still shows verbosely. I use this in my script for the following reason. Some people on IRC still have their $ip set to a private IP depending on how they checked their LocalInfo Settings, which prevents DCCs from acting right.

I use this in my ON CONNECT (which is a quick painless fix for this problem)
if ($server) {
if (($left($ip,4) == 192.) || ($left($ip,4) == 127.) || ($left($ip,3) == 10.) || !$ip) { .localinfo -u }
}

And I would prefer not to see it:)

Just letting you know,


Matt Douglas
[email]ice-man@efnet[/email]
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
/localinfo is one of the few commands that do not have a ./silence ability, personally I see no harm in showing, or infact, not showing it, so perhaps now that you mentioned it we might see a ./silence in the future. laugh

Eamonn.

Joined: Oct 2003
Posts: 214
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Oct 2003
Posts: 214
btw you could save a lot of code if you use $istok for your if request...

also you can use a scripted version of localinfo or something like a "getmyip" snippet

just an example for your if request:
if (($istok(192 127 10.,$left($ip,3),32)) || (!$ip)) uhm and on connect you don't have to check for $server because it returns always something if you are connected... wink

try if ($status == connected) but you don't need this in an on connect event *sigh* wink

hmm... and i'm bored... i'm talking to much =)


one step closer to world domination

Link Copied to Clipboard