Fix the /help command with commands of the current tab

This commit is contained in:
Florent Le Coz 2011-02-10 16:15:33 +01:00
parent ffcf65ec43
commit 30f9f2b055

View file

@ -999,6 +999,8 @@ class Core(object):
if len(args) >= 1: if len(args) >= 1:
if args[0] in list(self.commands.keys()): if args[0] in list(self.commands.keys()):
msg = self.commands[args[0]][1] msg = self.commands[args[0]][1]
elif args[0] in list(self.current_tab().commands.keys()):
msg = self.current_tab().commands[args[0]][1]
else: else:
msg = _('Unknown command: %s') % args[0] msg = _('Unknown command: %s') % args[0]
self.information(msg) self.information(msg)