summaryrefslogtreecommitdiff
path: root/basecommands.py
diff options
context:
space:
mode:
authorDico200 <dico.karssiens@gmail.com>2015-03-29 12:48:32 +0200
committerDico200 <dico.karssiens@gmail.com>2015-03-29 12:48:32 +0200
commit661e25dc675cb1aade3b7038520d0f6371981a88 (patch)
treefaf0b318d0a3c1d6d3245ef9054fdae9e4343893 /basecommands.py
parent6590a8d30a2ebf59ba251f0fe06a87a537bd482d (diff)
Some tweaks and updates
Diffstat (limited to 'basecommands.py')
-rw-r--r--basecommands.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/basecommands.py b/basecommands.py
index 9ead977..311ee9b 100644
--- a/basecommands.py
+++ b/basecommands.py
@@ -104,7 +104,8 @@ def advancedcommand(cmd,
return called.call(sender, command, label, args)
def decorator(function):
- functions = [new.function(c, globals()) for c in function.func_code.co_consts if inspect.iscode(c)]
+ #functions = [new.function(c, globals()) for c in function.func_code.co_consts if inspect.iscode(c)]
+ functions = function()
for sub in subCommands:
sub.setParent(cmd)
for func in functions:
@@ -149,7 +150,7 @@ class subcommand():
def isCalled(self, subcmd):
alias = self.cmd
i = 0
- while (i <= len(self.aliases)):
+ while i <= len(self.aliases):
if alias == subcmd:
return True
alias = self.aliases[i]