10 lines
255 B
Python
10 lines
255 B
Python
global commands
|
|
commands["req"] = {}
|
|
def f(self,cmd):
|
|
if len(cmd) < 3:
|
|
return ["error","nonfatal","syntax","need at least 3 arguments"]
|
|
|
|
rtn = cmd[:2] + self.runCommand(cmd[2:])
|
|
return rtn
|
|
commands["req"]["function"] = f
|
|
commands["req"]["sleep"] = 0 |