mIRC Home    About    Download    Register    News    Help

Print Thread
#240869 03/03/13 09:14 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
It would be great if there was a -n switch for /timer so that it doesn't evaluate identifiers and variables when the timer fires, much like the 'n' flag in $read and $readini.

//timer -n 1 1 echo -a $!time

Output: $time

vs.

//timer 1 1 echo -a $!time

Output: 21:13

hixxy #240873 03/03/13 11:13 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Is this what you looking for?: //echo -a $eval($time,0) or //echo -a $eval($!time,1) , no need to make somthing new if it exist? smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
hixxy #240877 04/03/13 12:42 AM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
/me slaps hixxy with https://forums.mirc.com/ubbthreads.php/ubb/showflat/Number/223382/ or https://forums.mirc.com/ubbthreads.php/ubb/showflat/Number/200216/

There are a lot of discussions about this anyway, Khaled probably is aware.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Wims #240889 04/03/13 06:19 PM
Joined: Sep 2005
Posts: 2,881
H
hixxy Offline OP
Hoopy frood
OP Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Originally Posted By: sparta
Is this what you looking for?: //echo -a $eval($time,0) or //echo -a $eval($!time,1) , no need to make somthing new if it exist? smile


Not that. /timer evaluates contents an extra time, so if you use content where you can't control the source, such as the text in a channel, then people can type identifiers and mIRC will evaluate them. This kind of behaviour can be (and is) exploited.

Originally Posted By: Wims
/me slaps hixxy with https://forums.mirc.com/ubbthreads.php/ubb/showflat/Number/223382/ or https://forums.mirc.com/ubbthreads.php/ubb/showflat/Number/200216/

There are a lot of discussions about this anyway, Khaled probably is aware.


Those suggestions are three and five years old, I thought it wouldn't hurt to suggest it again :p


Link Copied to Clipboard