mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 05:32:51 +01:00
The documentation was wrong, not the code.
This commit is contained in:
parent
2fb2a6e8cd
commit
c5aa3f0112
@ -359,7 +359,7 @@ class RichReplyMethods(object):
|
||||
if isinstance(capability, basestring): # checkCommandCapability!
|
||||
log.warning('Denying %s for lacking %r capability',
|
||||
self.msg.prefix, capability)
|
||||
if conf.supybot.reply.noCapabilityError():
|
||||
if not conf.supybot.reply.noCapabilityError():
|
||||
v = conf.supybot.replies.noCapability.get(self.msg.args[0])()
|
||||
s = self.__makeReply(v % capability, s)
|
||||
self.error(s, **kwargs)
|
||||
|
@ -196,7 +196,7 @@ Determines whether the bot will send error messages to users in private."""))
|
||||
supybot.reply.register('noCapabilityError', registry.Boolean(False, """
|
||||
Determines whether the bot will send an error message to users who attempt to
|
||||
call a command for which they do not have the necessary capability. You may
|
||||
wish to make this False if you don't want users to understand the underlying
|
||||
wish to make this True if you don't want users to understand the underlying
|
||||
security system preventing them from running certain commands."""))
|
||||
|
||||
supybot.reply.register('withPrivateNotice', registry.Boolean(False, """
|
||||
|
Loading…
Reference in New Issue
Block a user