1
0
Fork 0

[alias] Fix empty error message

This commit is contained in:
nemunaire 2016-04-06 02:00:32 +02:00
parent 358499e6d5
commit abf810209e
1 changed files with 2 additions and 2 deletions

View File

@ -232,8 +232,8 @@ def cmd_alias(msg):
channel=msg.channel)
else:
wym = guess(alias.cmd, context.data.getNode("aliases").index)
raise IMException(msg.args[0] + " is not an alias." + (" Would you mean: %s?" % ", ".join(wym)) if len(wym) else "")
wym = [m for m in guess(alias.cmd, context.data.getNode("aliases").index)]
raise IMException(msg.args[0] + " is not an alias." + (" Would you mean: %s?" % ", ".join(wym) if len(wym) else ""))
@hook.command("unalias",