mIRC Home    About    Download    Register    News    Help

Print Thread
#173545 25/03/07 11:14 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Hi all,

I'm trying to resolve someone's hostmask, when they PM me, and when they are not sharing any channels with me.

$address($active,2) doesnt work, since the nick is not in the IAL.

Basicly I want to end up with:
var %address = *!*@hostmask

But I noticed that if the nick is not in the IAL, this is quite difficult to achieve. Does anyone have a solution for this?

Thanks in advance!

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Code:
raw 311:*:{
  var %address = $+(*!*@,$4)
}


The format for it is
<your nick> <their nick> <their ident> <their host> * <their name>

So that's where the $4 from the code come in.

I don't know what exactly you're trying to do with the info, but that should give you a start.

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Hmm, I tried it but I didnt get it to work.
So, I checked raw 311, but it seems it's part of a whois request.
Check here...

When I check with @debug, I dont see any raw triggering when someone send me a private message.

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
Ah, sorry I forgot I have the "whois on query" option checked. Alt+O -> IRC. Maybe that will suffice for you?

Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Cool!

Yeah, I think that did the trick!

Thx a lot man.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Alternatively, you could use $address($nick,2)
The IAL doesn't matter in that case, since you're forcing the address of $nick to be returned.

Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
But if the address of nick is not in the IAL, then $address will be null.


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
The identifiers $wildsite, $address (without any arguments/parentheses) and $fulladdress are always available in the on text event.

$wildsite returns exactly what you want.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
Ow wow, $wildsite is the best.
No need for any raws or whatever.

Brilliant, thx Starbucks!


Link Copied to Clipboard