mIRC Home    About    Download    Register    News    Help

Print Thread
#238469 01/08/12 10:22 AM
C
Charus
Charus
C
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?

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

argv0 #238492 02/08/12 11:48 PM
C
Charus
Charus
C
var %userHost = $address($nick, 2)

I use this inside an ONJOIN remote

#238495 03/08/12 12:17 AM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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
C
Charus
Charus
C
That was working few versions before ;s Its an old script.

Last edited by Charus; 03/08/12 12:21 AM.
#238497 03/08/12 12:29 AM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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
C
Charus
Charus
C
Lucky? laugh You cant be lucky with that things. The thing is that $address($nick, 2) was working and now its not working.

#238499 03/08/12 02:47 AM
Joined: Oct 2003
Posts: 3,641
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,641
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.

argv0 #238516 04/08/12 02:54 AM
C
Charus
Charus
C
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.

#238859 02/09/12 05:53 AM
M
MeStinkBAD
MeStinkBAD
M
There is no reason why $address can't fetch the address of a user if not cached. In fact it probably should do this.

#238862 02/09/12 12:46 PM
Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
$address($nick,2) and $wildsite are used interchangeably. The only difference is that one's longer then the other.

#238871 02/09/12 05:19 PM
Joined: Dec 2002
Posts: 2,884
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,884
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.

Tomao #238872 02/09/12 05:24 PM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
Ok fair enough. I've always seen them both abused quite often.

Tomao #238881 03/09/12 04:59 AM
Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
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,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
Now I couldn't have said it better myself. cool


Link Copied to Clipboard