From 612b7b43024edd543a5af1d555859bb4f47294a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Apitzsch?= Date: Wed, 28 Mar 2018 20:13:05 +0200 Subject: [PATCH] Show help lines only once fixes #9018 --- gajim/command_system/framework.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gajim/command_system/framework.py b/gajim/command_system/framework.py index fb7ce1c41..bc5c9a850 100644 --- a/gajim/command_system/framework.py +++ b/gajim/command_system/framework.py @@ -142,7 +142,7 @@ class CommandProcessor(object): def list_commands(self): commands = list_commands(self.COMMAND_HOST) commands = dict(commands) - return sorted(list(commands.values()), key=lambda k: k.__repr__()) + return sorted(set(commands.values()), key=lambda k: k.__repr__()) class Command(object):