Hi,
I'm fairly new to irc scripting.
I have the following problem: I have a file with information like:
[tag1]
info1
info2
info3
--------
[tag2]
info1
info2
info3
-------
[tag3]
info1
info2
info3
-------
etc...
Now I want to play that file to ppl requesting info from it.
The command for that would be:
/play -q4ttag2 D:\Program\mIRCStorm\timezone.txt 200
now I want my ircchannel to respond on something like:
showinfo aTag (where aTag can be any of the tags in the file)
I have a line in Remote that says:
on 1:text:*showinfo*:#mytest:/pinfo $$2
IMHO meaning: act on an entry that contains the word showinfo in channel #mytest. When found execute /pinfo and pass the 2nd variable (aTag in this case) on to the /pinfo command.
Now in my aliases I have:
/pinfo /play -q4t$2 $nick D:\Program\mIRCStorm\info.txt
now I would think that this would pass aTag in $2 into the t command from play, but the problem is that play doesn't see it as a variable but as the real input:
/play: topic '[$2]' not found in 'info.txt'
Is it at all possible to make play getting a variable input there ?
and if so, HOW?
Thanks in advance for your time and advice.