chatServer/modules/req.py
Fierelier 47b5b1a6f2 Oop
2021-10-28 08:17:07 +02:00

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