Aka: fix a bug in aka show where None is returned for non-existant aliases

This commit is contained in:
GLolol 2014-10-03 08:03:38 -07:00 committed by Valentin Lorentz
parent e833aba16c
commit a5224fe84f

View File

@ -681,7 +681,10 @@ class Aka(callbacks.Plugin):
Raise=True)
channel = arg
command = self._db.get_alias(channel, name)
irc.reply(command)
if command:
irc.reply(command)
else:
irc.error(_('This Aka does not exist'))
show = wrap(show, [getopts({'channel': 'somethingWithoutSpaces'}),
'text'])