6 lines
225 B
Python
6 lines
225 B
Python
|
def f(self,cmd,*args):
|
||
|
if len(args) < 2:
|
||
|
return ["error","nonfatal","syntax","Correct syntax: " +cmd+ ",<id>,<command>,[arg 1],[arg 2],[...]"]
|
||
|
|
||
|
return ["req",args[0]] + runCommand(self,*args[1:])
|
||
|
commands["req"] = f
|