[Mod] Additional check in on_message, fixed typos

Fixes #433
This commit is contained in:
Twentysix
2016-11-02 22:38:20 +01:00
parent 70b7fe4468
commit 324a2d2156
2 changed files with 6 additions and 5 deletions

View File

@@ -837,7 +837,7 @@ class Mod:
tmp["reason"] = "Type [p]reason {} <reason> to add it".format(case_n)
if case["moderator"] is None:
tmp["moderator"] = "Unknown"
tmp["moderator_id"] = "Nobody has claimed responsability yet"
tmp["moderator_id"] = "Nobody has claimed responsibility yet"
case_msg = ("**Case #{case}** | {action}\n"
"**User:** {user} ({user_id})\n"
@@ -951,7 +951,8 @@ class Mod:
return False
async def on_message(self, message):
if message.channel.is_private or self.bot.user == message.author:
if message.channel.is_private or self.bot.user == message.author \
or isinstance(message.author, discord.User):
return
elif self.is_mod_or_superior(message):
return