From dcaaad3a883e65702357f2248f2f03f7a9d04fd4 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Thu, 2 Mar 2017 09:54:35 +0000 Subject: [PATCH] Fixed help on admin plugin. --- plugin/admin/admin.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugin/admin/admin.py b/plugin/admin/admin.py index ae17b57..0e5629b 100644 --- a/plugin/admin/admin.py +++ b/plugin/admin/admin.py @@ -35,7 +35,7 @@ class Admin(object): return PluginCommand.exclusive async def handle_help(self, message, command, *args): - await self.help_command(message, *args) + await self.help_command(message, command, *args) async def run_command(self, message, args): if not bot.is_admin(message.author): @@ -134,12 +134,12 @@ class Admin(object): await cat.hiss(message.channel) return - if len(args) < 4: - await cat.yelp(message.channel) + if args[0].lower() == 'help': + await self.help_command(message, 'permissions') return - if args[0].lower() == 'help': - await self.help_command(message, 'help') + if len(args) < 4: + await cat.yelp(message.channel) return action, where, who, permission = args[0:4] -- 2.7.4