mIRC Home    About    Download    Register    News    Help

Print Thread
#53888 12/10/03 07:38 AM
Joined: Aug 2003
Posts: 18
A
Amar Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2003
Posts: 18
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?


if it is a door, it will open!
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Code:
on 1:TEXT:*:?:{
  echo -a Message from: $nick
  echo -a Address: $mask($fulladdress,2)
}

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
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


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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.

Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
was worth a shot eh? smile


Those who fail history are doomed to repeat it
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
$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.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Collective said that.
You can also use $wildsite for the exact same result. smile

Joined: Aug 2003
Posts: 18
A
Amar Offline OP
Pikka bird
OP Offline
Pikka bird
A
Joined: Aug 2003
Posts: 18
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.


if it is a door, it will open!
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
see also: $query($nick).addr


Well. At least I won lunch.
Good philosophy, see good in bad, I like!

Link Copied to Clipboard