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,6 +519,7 @@ class RichReplyMethods(object):
|
||||
v = self._getConfig(conf.supybot.replies.noCapability)
|
||||
v %= capability
|
||||
s = self.__makeReply(v, s)
|
||||
if s:
|
||||
return self._error(s, **kwargs)
|
||||
else:
|
||||
log.warning('Denying %s for some unspecified capability '
|
||||
|
Loading…
Reference in New Issue
Block a user