mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Aug 2005
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Aug 2005
Posts: 3
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

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
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.


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Aug 2005
Posts: 3
S
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Aug 2005
Posts: 3
The problem isn't the read command but the decode command which evaluates my string!

Last edited by StefftheEmperor; 31/08/05 01:01 PM.

Link Copied to Clipboard