The documentation was wrong, not the code.

This commit is contained in:
Jeremy Fincher 2004-02-16 08:36:29 +00:00
parent 2fb2a6e8cd
commit c5aa3f0112
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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, """