support exported command spec types!
This commit is contained in:
parent
f827bdce7f
commit
ab892c33b5
1 changed files with 11 additions and 6 deletions
|
@ -44,8 +44,13 @@ class Module(ModuleManager.BaseModule):
|
|||
value = simple_value
|
||||
n = simple_count
|
||||
error = argument_type.error()
|
||||
elif argument_type.type in types.TYPES:
|
||||
else:
|
||||
if argument_type.type in types.TYPES:
|
||||
func = types.TYPES[argument_type.type]
|
||||
else:
|
||||
func = self.exports.get_one("spec.%s" % argument_type.type)
|
||||
|
||||
if func:
|
||||
try:
|
||||
value, n = func(server, channel, user, args)
|
||||
except types.SpecTypeError as e:
|
||||
|
|
Loading…
Reference in a new issue