Automatically raise errorNoCapability as well.

This commit is contained in:
Jeremy Fincher 2004-10-01 21:26:20 +00:00
parent e3c9464634
commit c23e6c97a6

View File

@ -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)