Support script_load and script_flush as separate tokens too.

This commit is contained in:
Alex Roitman 2017-10-12 16:57:28 -07:00
parent d0a510d9ff
commit f572b14a2e
1 changed files with 2 additions and 1 deletions

View File

@ -705,7 +705,8 @@ func (c *Controller) command(
res, err = c.cmdConfigSet(msg) res, err = c.cmdConfigSet(msg)
case "config rewrite": case "config rewrite":
res, err = c.cmdConfigRewrite(msg) 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]) err = fmt.Errorf("unknown command '%s'", msg.Values[0])
if len(msg.Values) > 1 { if len(msg.Values) > 1 {
command := msg.Values[0].String() + " " + msg.Values[1].String() command := msg.Values[0].String() + " " + msg.Values[1].String()