Oh man i didnt read to carefully sorry.

My error about the $pi, but regardless the same effect.

The command line stuff was where my reading let me down again sorry.

And even as u pointed out there might be a ,2 in the code, but sibnce you must hardcode it, it wouldnt be a high occrance.

The idea of a -n switch on a timer would be far more valuable if it caused the timer to NOT evaluate anything at the timer creation time.
The -n switch you would want would be better attached to a /echo (using anther letter tho as n's taken) maybe -p for plain text
(from the commandline) /timer 1 1 echo -p Pi's value is $pi


Quote:
Code:
on *:TEXT:*:#:{ .timer 1 5 msg $chan $1- }


lol

on *:text:*:#:{ timer 1 5 msg $chan  $+ $replace($1-,$chr(32),$+($chr(32),)) }
;^ just puts double bold after any space disabling any evaluation (not good on channels banning color etc, evn tho u dont see it)

on *:text:*:#:{ timer 1 5 msg $chan $chr(160) $+ $replace($1-,$chr(32),$chr(160)) }
;^ just change space to $chr(160) a bit crude but acceptable in a pinch


blah you say the out put is changed!

Fair enough...
So lets take control of the value and store it, its the only way to be sure of not doing something ugly.

on *:text:*:#:{ var %v = $+(%,temp.,$ticks,.,$mid($rand(1000000,1999999),2)) | set -u10 $(%v,1) $1- | timer 1 5 msg $chan %v }
;^ always the exact output, the varable self erases after 10 seconds

UGLY! i hear you say!

Well i agree!

try this....

on *:text:*:#:{ timer 1 5 msg $chan $>($1-) }
;This is pretty clean a $>( ) surrounding the text
;
;
alias > { var %itemname = $+($ticks,.,$mid($rand(1000000,1999999),2)) | hadd -m hash.table.for.>.and.< %itemname $1 | return $!<( $+ %itemname $+ ) }
alias < { var %itemvalue = $hget(hash.table.for.>.and.<,$1) | hdel hash.table.for.>.and.< $1 | return %itemvalue }