mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 06:49:24 +01:00
Aka: fix a bug in aka show where None is returned for non-existant aliases
This commit is contained in:
parent
e833aba16c
commit
a5224fe84f
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user