link mauve: Fixed a crash on /help help help

This commit is contained in:
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 2010-10-31 19:02:57 +00:00
parent b0d73d6b52
commit 6f274225b6

View file

@ -847,7 +847,7 @@ class Gui(object):
for command in list(self.commands.keys()):
msg += "%s " % command
msg += _("\nType /help <command_name> to know what each command does")
if len(args) == 1:
if len(args) >= 1:
if args[0] in list(self.commands.keys()):
msg = self.commands[args[0]][1]
else: