mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Prevent traceback if supybot.replies.genericNoCapability is empty.
This commit is contained in:
parent
05d23d1a06
commit
13a633eea4
@ -519,7 +519,8 @@ class RichReplyMethods(object):
|
||||
v = self._getConfig(conf.supybot.replies.noCapability)
|
||||
v %= capability
|
||||
s = self.__makeReply(v, s)
|
||||
return self._error(s, **kwargs)
|
||||
if s:
|
||||
return self._error(s, **kwargs)
|
||||
else:
|
||||
log.warning('Denying %s for some unspecified capability '
|
||||
'(or a default).', self.msg.prefix)
|
||||
|
Loading…
Reference in New Issue
Block a user