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
1 changed files with 2 additions and 1 deletions

View File

@ -466,7 +466,8 @@ class RichReplyMethods(object):
v = self._getConfig(conf.supybot.replies.genericNoCapability)
else:
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)
else:
log.warning('Denying %s for some unspecified capability '