1
0
Fork 0

fix set command: allow strings to contain spaces

This commit is contained in:
mfranz 2007-02-19 20:52:55 +00:00
parent b075cf5f01
commit 6c95d65afa

View file

@ -272,10 +272,10 @@ PropsChannel::foundTerminator()
} else if ( command == "set" ) {
if ( tokens.size() >= 2 ) {
string value, tmp;
if ( tokens.size() == 3 ) {
value = tokens[2];
} else {
value = "";
for (unsigned int i = 2; i < tokens.size(); i++) {
if (i > 2)
value += " ";
value += tokens[i];
}
node->getNode( tokens[1].c_str(), true )
->setStringValue(value.c_str());