Subj : @-codes in a String
To   : All
From : ASCII Express
Date : Sat Jan 25 2014 10:35 pm

I've jumped in with both feet and have started writing my own command shell. It
has gone well so far. I have an annoying problem though..

I want to display a textfile based on the current message sub-board. I know
Synchronet has this, but I need to do it myself. I thought I'd put the filename
into a string variable.

str fn
sprintf fn "%%zrooms/%s" "@SUB@"
printfile fn
but it has unpredictable results. It seems to set it to the command string. I
also tried

set str "%zrooms/@SUB@"

but the @-code didn't expand. How can I do this? Thanks.
















s

---
� Synchronet � Pay no attention to that man behind the curtain!