mIRC Home    About    Download    Register    News    Help

Print Thread
#68892 22/01/04 01:51 PM
Joined: Oct 2003
Posts: 30
pleur Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2003
Posts: 30
I've written a simple bot in mIRC, with a !addquote command. This command writes the parameter in a file, so you can use '!quote' to see the quote again

Now, the only problem is this:

When i do "!addquote Exploit $1 in this script" it writes "Exploit !addquote in this script" to the text-file. This, ofcourse, can be very dangerous, because ppl can just read out all mij variables. I know $read has an option to not evaluate the text, is there such an option for the '/write' command? Or do I have to check the input?


------
Cheers m8!
Joined: Sep 2003
Posts: 156
B
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
did you try; !addquote Exploit $!1 in this script

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
seems you evaluate the text ($1-) twice...

check for any $eval or [ ] that might cause this


If it ain't broken, don't fix it!
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
/scon and /timer also do an extra evaluation on the parameters passed to them. Refer to these posts for more info on the danger and the way to avoid it:


Link Copied to Clipboard