mIRC Homepage
Posted By: enotsoc echo text - 02/01/06 07:21 PM
if i was to echo text , how can i make sure that $eval codes are ignored before i continue the echo'd text
specifically
$eval($findfile(c:\,*.*,0,scon -a amsg $1-))
but would rather ignore any $eval so no one can make my mirc run anything bad.
Posted By: RusselB Re: echo text - 02/01/06 10:34 PM
The easiest way to do that, is to remove the $eval from the entry.
eg:
Code:
 on *:text:*:*:{
echo $iif($eval isin $1-,$remove($1-,$eval),$1-)
}
 


This is by no means foolproof.
Posted By: starbucks_mafia Re: echo text - 02/01/06 11:50 PM
The $eval() wouldn't be treated as code unless you were evaluating more than once whatever variable/identifier contained it. The only way this can typically happen without you explicitly writing the code to do so is if you're using timers or scon/scid.
Posted By: DaveC Re: echo text - 03/01/06 06:53 AM
$eval well be evaluated to null frown

This might work %text = $+($chr(2),$chr(2),$replacex(%text,$chr(32),$+($chr(32),$chr(2),$chr(2))))

Puts a double bold after each space (and at the start of the line), which should cause anything that might have been reevaluated (assuming a reevaluation occurs) to be seen as plain text

(might end up with a string to long error on big lines with lots of spaces)
© mIRC Discussion Forums