Commit c99258e8 by Francois Gygi

Add option to reset iter_cmd to a NULL string


git-svn-id: http://qboxcode.org/svn/qb/trunk@1860 cba15fb0-1239-40c8-b417-11db7ca47a34
parent 9aaab5a0
......@@ -36,6 +36,13 @@ class IterCmd : public Var
int set ( int argc, char **argv )
{
if ( !strcmp(argv[1],"NULL") )
{
// reset iter_cmd to empty string
s->ctrl.iter_cmd.clear();
return 0;
}
// include all arguments until \n
string v;
for ( int i = 1; i < argc; i++ )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment