From 05d23d1a06faef9d3026dc624109f19e762e41b4 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 2 Feb 2013 19:47:05 +0100 Subject: [PATCH] Remove unreachable code. --- src/callbacks.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/callbacks.py b/src/callbacks.py index 401b8487f..e18838c8a 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -520,12 +520,6 @@ class RichReplyMethods(object): v %= capability s = self.__makeReply(v, s) 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: log.warning('Denying %s for some unspecified capability ' '(or a default).', self.msg.prefix)