mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Prevent traceback if supybot.replies.genericNoCapability is empty.
This commit is contained in:
parent
05d23d1a06
commit
13a633eea4
@ -519,6 +519,7 @@ class RichReplyMethods(object):
|
|||||||
v = self._getConfig(conf.supybot.replies.noCapability)
|
v = self._getConfig(conf.supybot.replies.noCapability)
|
||||||
v %= capability
|
v %= capability
|
||||||
s = self.__makeReply(v, s)
|
s = self.__makeReply(v, s)
|
||||||
|
if 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 '
|
||||||
|
Loading…
Reference in New Issue
Block a user