From 20abac74610efcaa98aa71c4e08fa7ec26511f86 Mon Sep 17 00:00:00 2001 From: Mitchell Cooper Date: Sun, 9 Jul 2017 21:23:52 -0400 Subject: [PATCH] hide aliases from command list --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index 11ed9ec..82893d0 100644 --- a/utils.py +++ b/utils.py @@ -456,8 +456,8 @@ class ServiceBot(): except IndexError: plugin_filter = None - # Don't show CTCP handlers in the public command list. - cmds = sorted(cmd for cmd in self.commands.keys() if '\x01' not in cmd) + # Don't show CTCP handlers or aliases in the public command list. + cmds = sorted(cmd for cmd in self.commands.keys() if '\x01' not in cmd and cmd not in self.alias_cmds) if plugin_filter is not None: # Filter by plugin, if the option was given.