mIRC Home    About    Download    Register    News    Help

Print Thread
Needing to do a whois before using $address? #23652 11/05/03 07:26 AM
Joined: May 2003
Posts: 9
A
Acid_X Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: May 2003
Posts: 9
I find that in alot of cases, in order to be able to get a response from $address, you have to do a whois on the user before getting a response besides $null.

Is there a reason for this, or is it just a bug? :\

Re: Needing to do a whois before using $address? #23653 11/05/03 08:48 AM
Joined: May 2003
Posts: 730
S
ScatMan Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: May 2003
Posts: 730
depends on what are u trying to do,
$address - only for events that has $nick it will return his address from the event
$address(nick,N) - will return the address only if the user has common channel with u and u got his IAL, if u don't have his ial u can get it with /who NICK or /whois NICK or /userhost NICK

Re: Needing to do a whois before using $address? #23654 11/05/03 09:09 AM
Joined: Dec 2002
Posts: 191
N
Nobodi Offline
Vogon poet
Offline
Vogon poet
N
Joined: Dec 2002
Posts: 191
From the help file.

A user's address is added to the list either when they join the channel, send a message to a channel, or make a mode change.

A user's address is removed from the list when they are no longer on any of the channels which you are currently on.

/help ial
"who #" when you join the channel will help fill the ial as well.

Re: Needing to do a whois before using $address? #23655 11/05/03 08:14 PM
Joined: May 2003
Posts: 9
A
Acid_X Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: May 2003
Posts: 9
Ah, okay. I meant $address(Nick,N). Thanks guys. wink

Re: Needing to do a whois before using $address? #23656 11/05/03 08:15 PM
Joined: Dec 2002
Posts: 1,527
_
_D3m0n_ Offline
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
well thats not a bug because in order to fill the ial u have to be able to see the user join or modeset ... so if this user doesnt do any of those things that will trigger an ial list update then u will not get thier address unless u /who the entire chan on join ......


D3m0nnet.com
Re: Needing to do a whois before using $address? #23657 11/05/03 09:53 PM
Joined: May 2003
Posts: 9
A
Acid_X Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
A
Joined: May 2003
Posts: 9
What exactly does /who # do?

Re: Needing to do a whois before using $address? #23658 11/05/03 09:56 PM
Joined: Dec 2002
Posts: 2,809
C
codemastr Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Well in an mIRC script, # is translated to "the current channel" so when you do /who # from a script it will do /who #the_current_channel which makes the server give you info about everyone on the current channel.