Fix the all and allc commands so they work with the new data format

This commit is contained in:
2019-09-29 14:57:36 +01:00
parent 15ca45e5df
commit 355a80b19b
8 changed files with 45 additions and 35 deletions

View File

@@ -9,7 +9,7 @@ class CmdCommand:
if authed:
if length > 4:
if not spl[1].isdigit():
failure("Must be integer, not %s" % spl[1])
failure("Must be a number, not %s" % spl[1])
return
commands = {spl[3]: [" ".join(spl[4:])]}
success("Sending commands to relay %s as user %s" % (spl[2], spl[3]))