From 5988bd56ba9ed4250ea7f396f7e29fb3edb19267 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Fri, 15 Jul 2016 14:20:29 -0500 Subject: [PATCH] Fixed syntax error --- cogs/mod.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/mod.py b/cogs/mod.py index ee5e01a..c4c4caa 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -77,7 +77,7 @@ class Mod: return cursor = config.getCursor() - cursor.execute('use {}'.format(config.db_default)) + cursor.execute('use {}'.format(config.db_perms)) cursor.execute("show tables like '{}'".format(ctx.message.server.id)) result = cursor.fetchone() if result is None: @@ -124,7 +124,7 @@ class Mod: sql = "update `"+ctx.message.server.id+"` set perms=%s where command=%s" cursor.execute(sql,(permissions,command)) - await self.bot.say("I have just added your custom permissions; you now need to have {} permissions to use the command {}".format(permissions, command)) + await self.bot.say("I have just added your custom permissions; you now need to have `{}` permissions to use the command `{}`".format(permissions, command)) config.closeConnection()