Implement loading new modules at runtime

This commit is contained in:
2018-02-23 23:26:21 +00:00
parent cb7142ef88
commit 378c4d9bba
5 changed files with 49 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ def parseCommand(addr, authed, data):
failure("No text was sent")
return
for i in CommandMap.keys():
if data.startswith(i):
if spl[0] == i:
CommandMap[i](addr, authed, data, obj, spl, success, failure, info, incUsage, length)
return
incUsage(None)