chatServer/modules/req.py

6 lines
225 B
Python
Raw Normal View History

2021-10-28 06:17:07 +00:00
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