Prevent exception when replying with a genericNoCapability error

Signed-off-by: James McCoy <jamessan@users.sourceforge.net>
This commit is contained in:
James McCoy 2013-08-31 23:04:38 -04:00
parent cf975227ba
commit 4bc549c1ed

View File

@ -466,7 +466,8 @@ class RichReplyMethods(object):
v = self._getConfig(conf.supybot.replies.genericNoCapability) v = self._getConfig(conf.supybot.replies.genericNoCapability)
else: else:
v = self._getConfig(conf.supybot.replies.noCapability) v = self._getConfig(conf.supybot.replies.noCapability)
s = self.__makeReply(v % capability, s) v = v % capability
s = self.__makeReply(v, s)
return self._error(s, **kwargs) return self._error(s, **kwargs)
else: else:
log.warning('Denying %s for some unspecified capability ' log.warning('Denying %s for some unspecified capability '