mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2006
Posts: 13
L
LandbO Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2006
Posts: 13
HEY AGAIN smile

if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this Internal IP: ??
if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this External IP: $ip
if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this hostmask: ??
}

what are the commands for that ?

help plz

Last edited by LandbO; 07/04/06 01:15 AM.
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
Code:
$address(nickname,type)
Searches the Internal Address List for the address associated with the specified nickname.

$address(nick,1)  returns *!*user@host

If the Internal Address List doesn't contain a matching nickname, the identifier returns $null.

See $mask() for a list of types.
in mirc do SHIFT+ F1 and look for $adress then nick and adress identifiers

Joined: Apr 2006
Posts: 13
L
LandbO Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2006
Posts: 13
thanks but i cant figure it out

on @*:Join:#CSmixes: {
mode $chan +v $nick
if ( $chan == #CSmixes ) msg $chan 7,15 $nick is from $country($address($nick,2))
if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this External IP: $ip
if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this Internal IP: $address(nick,1)

what is wrong ?

Joined: Apr 2005
Posts: 1,009
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2005
Posts: 1,009
afaik $ip returns YOUR IP

and you are missing $ in $address(nick,1)
so it should be $address($nick,1)

where mask types are from 1 - 9


IceCapped
Joined: Apr 2006
Posts: 13
L
LandbO Offline OP
Pikka bird
OP Offline
Pikka bird
L
Joined: Apr 2006
Posts: 13
when i type $ip i only see my own ip:

<|MIXes|> [9]FozzweR^off have this External IP: 83.93.126.105
<|MIXes|> LandbO have this External IP: 83.93.126.105

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Well, lets see why it's showing your IP. This is taken directly from the mIRC help file:

Quote:
$ip
Returns your IP address.




Also, in your original code (broken down line by line):

on @*:Join:#CSmixes:{

mode $chan +v $nick

if ( $chan == #CSmixes ) msg $chan 7,15 $nick is from $country($address($nick,2))
Not needed, you already defined $chan as being #CSMixes on the first line, so it's not possible for $chan to evaluate to anything except #CSMixes

if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this External IP: $ip
Not needed, you already defined $chan as being #CSMixes on the first line, so it's not possible for $chan to evaluate to anything except #CSMixes


if ( $chan == #CSmixes ) msg $chan 7,15 $nick have this Internal IP: $address(nick,1)
First: Not needed, you already defined $chan as being #CSMixes on the first line, so it's not possible for $chan to evaluate to anything except #CSMixes

Second: Should be $remove($address($nick,2),!,*,@)

Generally speaking, $address($nick,2) will return the user's hostmask and not their IP. It would only show the IP if that user's IP could not be reverse dns'd when they connected to the server, which is something you can't control.

And unless you didn't post all of the code, you're missing a closing brace at the end.

$remove($address($nick,2),!,*,@) should be for External IP and not Internal IP. Unless you want to break into an user's system, there's no way you can determine their internal address. The user may not even have one, in which case they are directly connected to a modem.


Link Copied to Clipboard