Renovate the module system and implement adding and resuming pool instances using the new relay/alias/network system
This commit is contained in:
@@ -2,15 +2,18 @@ import main
|
||||
from utils.loaders.single_loader import loadSingle
|
||||
|
||||
class Loadmod:
|
||||
def __init__(self, register):
|
||||
register("loadmod", self.loadmod)
|
||||
def __init__(self, *args):
|
||||
self.loadmod(*args)
|
||||
|
||||
def loadmod(self, addr, authed, data, obj, spl, success, failure, info, incUsage, length):
|
||||
if authed:
|
||||
if length == 2:
|
||||
rtrn = loadSingle(spl[1], main.register)
|
||||
rtrn = loadSingle(spl[1])
|
||||
if rtrn == True:
|
||||
success("Loaded module %s" % spl[1])
|
||||
success("Loaded module: %s" % spl[1])
|
||||
return
|
||||
elif rtrn == "RELOAD":
|
||||
success("Reloaded module: %s" % spl[1])
|
||||
return
|
||||
else:
|
||||
failure("Error loading module %s: %s" % (spl[1], rtrn))
|
||||
|
||||
Reference in New Issue
Block a user