Merge pull request #229 from rshura/compound_commands

Support script_load and script_flush as separate tokens too.
This commit is contained in:
Josh Baker 2017-10-17 05:15:49 -07:00 committed by GitHub
commit a3d1c08c63
1 changed files with 2 additions and 1 deletions

View File

@ -705,7 +705,8 @@ func (c *Controller) command(
res, err = c.cmdConfigSet(msg)
case "config rewrite":
res, err = c.cmdConfigRewrite(msg)
case "config":
case "config", "script":
// These get rewritten into "config foo" and "script bar"
err = fmt.Errorf("unknown command '%s'", msg.Values[0])
if len(msg.Values) > 1 {
command := msg.Values[0].String() + " " + msg.Values[1].String()