mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Change the behavior to match the naming and help.
This commit is contained in:
parent
23393edd83
commit
3bdef0fabf
@ -359,7 +359,7 @@ class RichReplyMethods(object):
|
|||||||
if isinstance(capability, basestring): # checkCommandCapability!
|
if isinstance(capability, basestring): # checkCommandCapability!
|
||||||
log.warning('Denying %s for lacking %r capability',
|
log.warning('Denying %s for lacking %r capability',
|
||||||
self.msg.prefix, capability)
|
self.msg.prefix, capability)
|
||||||
if not conf.supybot.reply.noCapabilityError():
|
if conf.supybot.reply.noCapabilityError():
|
||||||
v = conf.supybot.replies.noCapability.get(self.msg.args[0])()
|
v = conf.supybot.replies.noCapability.get(self.msg.args[0])()
|
||||||
s = self.__makeReply(v % capability, s)
|
s = self.__makeReply(v % capability, s)
|
||||||
self.error(s, **kwargs)
|
self.error(s, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user