mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-24 03:29:28 +01:00
Automatically raise errorNoCapability as well.
This commit is contained in:
parent
e3c9464634
commit
c23e6c97a6
@ -458,6 +458,8 @@ class RichReplyMethods(object):
|
||||
return self.error(s, **kwargs)
|
||||
|
||||
def errorNoCapability(self, capability, s='', **kwargs):
|
||||
if 'Raise' not in kwargs:
|
||||
kwargs['Raise'] = True
|
||||
if isinstance(capability, basestring): # checkCommandCapability!
|
||||
log.warning('Denying %s for lacking %r capability.',
|
||||
self.msg.prefix, capability)
|
||||
|
Loading…
Reference in New Issue
Block a user