mIRC Home    About    Download    Register    News    Help

Print Thread
$getaddress without using IAL #146142 31/03/06 03:22 PM
Joined: May 2004
Posts: 9
F
Foster Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
F
Joined: May 2004
Posts: 9
It would be nice to have a $getaddress identifier (could be named anything) that would:

1. For events, such as on TEXT and CTCP, return the address of the user that the server sent for that specific message. (Mostly useful for private messages/CTCP's where the sender/receiver share no common channels).

2. For all other places, it would do a /userhost on the nickname and return the address (the way that the /ignore command does if the target is not in the IAL).

It would be mostly needed to get around the biggest limitation of the Internal Address List: the fact that only entries are stored for users sharing a common channel. As a side effect, it would also allow you to retrieve the address of users that join a channel and it is the first common channel. The syntax should probably be the same or very similar to $address.

An alternative would be to add a property (such as .server) to the $address identifier ($address($nick, 5).server) to perform the functionality described above.

Re: $getaddress without using IAL #146143 31/03/06 03:31 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Try $fulladdress for the events

Re: $getaddress without using IAL #146144 15/04/06 08:52 PM
Joined: Jan 2004
Posts: 162
R
RRX Offline
Vogon poet
Offline
Vogon poet
R
Joined: Jan 2004
Posts: 162
+ $site and $wildsite

Aside note: some networks have a vhost service that allows you to switch it on/off without a (fake) disconnect or any other signal to indicate this to other users, so the IAL can have an entry that is not same as the current. I think it's best to use IAL addresses as less as possible.

Re: $getaddress without using IAL #146145 16/04/06 09:10 AM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
I think a better addition would be something that will pause script execution until the ial is filled (like /updatenl but it will WAIT until the ial is filled), so you could do something like this:

Code:
on *:join:#:{
  if ($nick == $me) {
    if (!$chan($chan).ial) fillial
    if (!$chan($chan).ibl) fillibl
    if (!$chan($chan).iel) filliel
    if (!$chan($chan).iil) filliil
    echo -a $address($nick($chan,1),2)
  }
}

Re: $getaddress without using IAL #146146 06/05/06 12:44 AM
Joined: Dec 2002
Posts: 19
M
MiSsInGnO Offline
Pikka bird
Offline
Pikka bird
M
Joined: Dec 2002
Posts: 19
Please keep in mind that the /userhost thing would work asynchronously, which means that if something were to happen (like say, your connection goes down), the event may just not work the way it was expected to!

Best regards