mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2006
Posts: 92
L
Lloyd_B Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: May 2006
Posts: 92
I have a little problem that I can't seem to solve on my own unfortunately.

I would like to play a specific 'topic' in a text file by using the date identifier $asctime() but it's not working the way I thought it would.

Here's the total line I want executed:
Code:
/play -t$asctime(yyyy-mm) $chan "C:\Program Files\mIRC\bot_op-classes.txt" 2000


As you can see, I want to have a topic section of the text file marked as the year and month played into a channel where the command is being executed.

This is the output I currently get when trying this:
Quote:

* /play: topic '$asctime(yyyy-mm)' not found in 'bot_op-classes.txt'


I was hoping to have the $asctime(yyyy-mm) section ending up becoming 2010-08 in the command.

Could anyone please help me resolve this problem?

Just a FYI, the text file with the data I want displayed is correctly formatted with the topic brackets. I have done similar stuff in the past with other commands. The command works fine when I substitute "$asctime(yyyy-mm)" with "2010-08" (or any other dates I have in the file).

Last edited by Lloyd_B; 29/08/10 12:25 AM.

Lloyd
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Try putting a space after the -t. I haven't tried that switch, but other switches work fine with a space and it will let that evaluate correctly.

Joined: May 2006
Posts: 92
L
Lloyd_B Offline OP
Babel fish
OP Offline
Babel fish
L
Joined: May 2006
Posts: 92
That didn't work either, but I did try that from your advice. Thanks for your reply though.

I'm still trying to solve it on my own. However, I hope I get some other replies. It helps to have more than one head on the problem.


Lloyd
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Use $+ --

Code:
//play -t $+ $asctime(yyyy-mm) $chan "C:\Program Files\mIRC\bot_op-classes.txt" 2000


Link Copied to Clipboard