mIRC Homepage
Posted By: Amar Address mask from a query - 12/10/03 07:38 AM
Hi guys
please go through the simple code given below, but note, my mIRC client is not connected to any channel, neither the second client which initiates a query with my client.

Code:
 
on 1:TEXT:*:?:{
echo -a Message from: $nick
echo -a Address: $mask($address($nick,2),2) }
 


The above script will sure print the nick name, but will give me a /echo not enough parameters error while processing the second line of echo. Please tell me how I can extract the address mask of a user who initiates a query with my client without joining any channel. Is it possible?
Posted By: Collective Re: Address mask from a query - 12/10/03 07:41 AM
Code:
on 1:TEXT:*:?:{
  echo -a Message from: $nick
  echo -a Address: $mask($fulladdress,2)
}
Posted By: landonsandor Re: Address mask from a query - 12/10/03 07:42 AM
on 1:TEXT:*:?:/echo -a Message from: $nick | /echo -a Address: $address($nick,2)

See if that works. $mask($address($nick,2),2) is an invalid format
Posted By: Collective Re: Address mask from a query - 12/10/03 07:45 AM
That won't work. $address used like that takes data from the IAL, which only holds the addresses of users from channels you are in.
Posted By: landonsandor Re: Address mask from a query - 12/10/03 07:48 AM
was worth a shot eh? smile
Posted By: LocutusofBorg Re: Address mask from a query - 12/10/03 08:49 AM
$mask($fulladdress,2)

$fulladdress is set to the full address of the one initiating an event, whether he is listed in the IAL or not.
Posted By: Iori Re: Address mask from a query - 12/10/03 08:56 AM
Collective said that.
You can also use $wildsite for the exact same result. smile
Posted By: Amar Re: Address mask from a query - 12/10/03 01:20 PM
Thanks guys!

I am really grateful to all of you for the responses shocked $mask($fulladdress,2) ! thats what I wanted!!!!
once again thanks guys.
Posted By: Raccoon Re: Address mask from a query - 12/10/03 07:14 PM
see also: $query($nick).addr
© mIRC Discussion Forums