Remove unreachable code.

This commit is contained in:
Valentin Lorentz 2013-02-02 19:47:05 +01:00
parent 785b973995
commit 05d23d1a06

View File

@ -520,12 +520,6 @@ class RichReplyMethods(object):
v %= capability v %= capability
s = self.__makeReply(v, s) s = self.__makeReply(v, s)
return self._error(s, **kwargs) return self._error(s, **kwargs)
if self._getConfig(conf.supybot.reply.error.noCapability):
v = self._getConfig(conf.supybot.replies.genericNoCapability)
else:
v = self._getConfig(conf.supybot.replies.noCapability)
s = self.__makeReply(v % capability, s)
return self._error(s, **kwargs)
else: else:
log.warning('Denying %s for some unspecified capability ' log.warning('Denying %s for some unspecified capability '
'(or a default).', self.msg.prefix) '(or a default).', self.msg.prefix)