mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2008
Posts: 1,515
westor Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Hello,

I am sure that this suggestion has been suggested many times, but is good to bring it back again for addition.

Adding an flag option into the /timer to not evaluate the text. (like -v)

-v = will not evaluate the text.

e.g:
Code:
alias test_run {
  var %t = test $chr(124) test 
  timer[test] -v 1 1 msg #channel %t
}


NOTE: I know the $safe identifier but is not a real solution of this.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2005
Posts: 192
Vogon poet
Offline
Vogon poet
Joined: Jan 2005
Posts: 192
Maybe I'm completely missing the point but couldnt this be solved simply by $eval(text,0), or in your case $eval(%t,0)


echo -a $signature
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
No, because that would cause %t to be evaluated only when the timer triggers, and here %t is a local variable that will be long gone by then.

As suggested by westor (and indeed, several others before) the feature would end the nightmare of double evaluation with timer commands, for which there just is no simple, reliable workaround. As such, this feature is long overdue, and should be compared to e.g. the 'n' flag to $read.


Saturn, QuakeNet staff
Joined: Apr 2004
Posts: 871
Sat Offline
Hoopy frood
Offline
Hoopy frood
Joined: Apr 2004
Posts: 871
Just to add: of course, the same flag could and should be added to similar commands such as /scon as well..


Saturn, QuakeNet staff

Link Copied to Clipboard