mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4,149
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Evaluating $hotlink(text) outside of the on hotlink event results in:
Quote:
Evaluation error: $hotlink
I don't think that's on purpose.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks for your bug report. That is correct, hotlink variables can only be accessed inside the hotlink event. They do not exist outside of the event.

Joined: Jul 2006
Posts: 4,149
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
I know, but none of the others 'variables' which can only be accessed in events are behaving this way.
I mostly reported it because I can't think of any other identifier doing that, so it feels inconsistent ($hotlink could be returning $null without halting, like the others).
But that being said, I remember you saying you wished you made some features more 'strict', and I agree, so I guess this is nice.

One thing: could the error message be changed to be explicit regarding how $hotlink can only be used from on hotlink? Maybe like how $input reports "$input: cannot use in event" for critical events, I think the current error is not so clear.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard