From 11cee7e7a40709bc48879bd2cbc32de31c546da9 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Mon, 20 Mar 2017 16:18:29 -0500 Subject: [PATCH] Ensure more than one string is provided --- cogs/mod.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cogs/mod.py b/cogs/mod.py index 5c97308..84325e2 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -272,6 +272,10 @@ class Mod: # Since subcommands exist, base the last word in the list as the permission, and the rest of it as the command command = " ".join(msg[0:len(msg) - 1]) + if command == "": + await ctx.send("Please provide the permissions you want to setup, the format for this must be in:\n" + "`perms add `") + return try: permissions = msg[len(msg) - 1] except IndexError: