From a5224fe84fb05b5b01aac9e14bbd00039c52c93c Mon Sep 17 00:00:00 2001 From: GLolol Date: Fri, 3 Oct 2014 08:03:38 -0700 Subject: [PATCH] Aka: fix a bug in aka show where None is returned for non-existant aliases --- plugins/Aka/plugin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/Aka/plugin.py b/plugins/Aka/plugin.py index f03df25a9..ca1d0be3d 100644 --- a/plugins/Aka/plugin.py +++ b/plugins/Aka/plugin.py @@ -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'])