Moved files to subdirectory
This commit is contained in:
19
legacy/commands/exec.py
Normal file
19
legacy/commands/exec.py
Normal file
@@ -0,0 +1,19 @@
|
||||
class ExecCommand:
|
||||
def __init__(self, *args):
|
||||
self.exec(*args)
|
||||
|
||||
def exec(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||||
if authed:
|
||||
if length > 1:
|
||||
try:
|
||||
rtrn = exec(" ".join(spl[1:]))
|
||||
except Exception as err:
|
||||
failure(str(err))
|
||||
return
|
||||
info(str(rtrn))
|
||||
return
|
||||
else:
|
||||
incUsage("exec")
|
||||
return
|
||||
else:
|
||||
incUsage(None)
|
||||
Reference in New Issue
Block a user