Fixes issue calling commands that do not require a password, such as help

This commit is contained in:
Jason Jackson 2017-07-28 08:04:32 -04:00
parent c5d3adcf32
commit a516bce8c6
1 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,11 @@ class Commands:
if password is None:
return
f = getattr(self, method)
result = f(*args, **{'password':password})
if cmd.requires_password:
result = f(*args, **{'password':password})
else:
result = f(*args)
if self._callback:
apply(self._callback, ())
return result