Fixed help on admin plugin.
authorCMDR furrycat <elite@furrycat.net>
Thu, 2 Mar 2017 09:54:35 +0000 (09:54 +0000)
committerCMDR furrycat <elite@furrycat.net>
Thu, 2 Mar 2017 09:54:35 +0000 (09:54 +0000)
plugin/admin/admin.py

index ae17b57..0e5629b 100644 (file)
@@ -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]