diff --git a/cogs/mod.py b/cogs/mod.py index 583b3ab..2f3cce6 100644 --- a/cogs/mod.py +++ b/cogs/mod.py @@ -20,6 +20,7 @@ class Mod: cursor.execute('insert into nsfw_channels (channel_id) values ("{}")'.format(ctx.message.channel.id)) except pymysql.IntegrityError: await self.bot.say("This channel is already registered as 'nsfw'!") + return config.connection.commit() await self.bot.say("This channel has just been registered as 'nsfw'! Have fun you naughties ;)")