chatServer/modules/[text server]/[commands]/req/module.py
2021-06-30 17:26:55 +02:00

9 lines
226 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