mIRC Home    About    Download    Register    News    Help

Print Thread
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.

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Try $fulladdress for the events

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.

Joined: Sep 2005
Posts: 2,881
H
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)
  }
}

Joined: Dec 2002
Posts: 19
M
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


Link Copied to Clipboard