mIRC Home    About    Download    Register    News    Help

Print Thread
#238469 01/08/12 10:22 AM
Joined: Sep 2011
Posts: 5
C
Charus Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Sep 2011
Posts: 5
Hello, i just upgrade to latest version and i notice that identifier $address(nickname,type) does not work. Is this happens only for me or anyone else have that problem too?

Charus #238473 01/08/12 06:07 PM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
You'll have to give a working example. $address() works fine here.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #238492 02/08/12 11:48 PM
Joined: Sep 2011
Posts: 5
C
Charus Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Sep 2011
Posts: 5
var %userHost = $address($nick, 2)

I use this inside an ONJOIN remote

Charus #238495 03/08/12 12:17 AM
Joined: Jul 2006
Posts: 3,961
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,961
When someone join a channel, you might not have his address if he never interacted with you already.
Inside event, you should always use the address available from the raw irc message, which is $wildsite (for the type 2).


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #238496 03/08/12 12:20 AM
Joined: Sep 2011
Posts: 5
C
Charus Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Sep 2011
Posts: 5
That was working few versions before ;s Its an old script.

Last edited by Charus; 03/08/12 12:21 AM.
Charus #238497 03/08/12 12:29 AM
Joined: Jul 2006
Posts: 3,961
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,961
Like I said you were probably lucky, you had already interacted with that user. $address($nick,2) should never be used inside an event


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #238498 03/08/12 12:35 AM
Joined: Sep 2011
Posts: 5
C
Charus Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Sep 2011
Posts: 5
Lucky? laugh You cant be lucky with that things. The thing is that $address($nick, 2) was working and now its not working.

Charus #238499 03/08/12 02:47 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Works fine here. You have to make sure your IAL is updated. Type /help IAL to learn how $address gets the host information-- in short, if the user was on the channel before you joined, mIRC will not be able to return anything for $address() until you /who # (or another command that gets the host of the users on the channel). This has ALWAYS been how mIRC has worked, nothing has changed in this respect.

In other words, when Wims said you were lucky, he meant that, previously, you've been using your script only on nicks that joined the channel after you did, and therefore the IAL was filled with their host information.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
argv0 #238516 04/08/12 02:54 AM
Joined: Sep 2011
Posts: 5
C
Charus Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Sep 2011
Posts: 5
Problem solved. Somehow ial was off when mirc was starting. Probably i used '/ial on' on a script that im not using any more so the command did not executed.

Thx for the help guys.

Charus #238859 02/09/12 05:53 AM
Joined: Apr 2003
Posts: 342
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Apr 2003
Posts: 342
There is no reason why $address can't fetch the address of a user if not cached. In fact it probably should do this.


Beware of MeStinkBAD! He knows more than he actually does!
Charus #238862 02/09/12 12:46 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
$address($nick,2) and $wildsite are used interchangeably. The only difference is that one's longer then the other.

MeStinkBAD #238871 02/09/12 05:19 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
You want mIRC to freeze for potentially dozens of seconds while $address() gets the user's info from the server? No, it definitely should not do this.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Tomao #238872 02/09/12 05:24 PM
Joined: Jul 2006
Posts: 3,961
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,961
No there are not, $address() retrieve the value from the ial, it can be $null, $wildsite is the value from the event, it always has a value ans should always be used instead of $address(,2) in an event


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #238877 03/09/12 12:42 AM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Ok fair enough. I've always seen them both abused quite often.

Tomao #238881 03/09/12 04:59 AM
Joined: Jul 2006
Posts: 3,961
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,961
Yeah well, unfortunatly, $address($nick,2) is often incorrectly used instead of $wildsite


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #238886 03/09/12 04:46 PM
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
Now I couldn't have said it better myself. cool


Link Copied to Clipboard