mIRC Homepage
Posted By: StefftheEmperor $decode problem using string - 28/08/05 10:19 AM
I've just another Problem using $decode: my encoded text, which i'd like to put decoded in an editbox on a table, starts with $ and the script tries to process the text. This doesn't work of course but I see no oppertunity treating the text as a string.

The source-code is available under http://nopaste.tshw.de/194
The bug occurs on line 195f by using the password 2531
Posted By: starbucks_mafia Re: $decode problem using string - 28/08/05 10:26 AM
You just need to use $read()'s n switch. Unless you explicitly want to evaluate what's being read from the file (which is very rare), you should always use the n switch.

Code:
195: 	           did -ra $dname 14 $decode($read($mircdir $+ system\config.msf,[color:green]n,[/color]4))
196: 	           did -ra $dname 15 $decode($read($mircdir $+ system\config.msf,[color:green]n,[/color]4))


There are several other occasions in that code where you haven't used it and you probably should.
Posted By: StefftheEmperor Re: $decode problem using string - 31/08/05 01:01 PM
The problem isn't the read command but the decode command which evaluates my string!
© mIRC Discussion Forums