From 4a54e2caa8f6bc365a4c61c4c4399a35d225be06 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 15 Jan 2019 04:51:08 +0300 Subject: [PATCH] Before packing events into a list, check if it's already one already --- cogs/mod_userlog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/mod_userlog.py b/cogs/mod_userlog.py index 414c420..a36e317 100644 --- a/cogs/mod_userlog.py +++ b/cogs/mod_userlog.py @@ -14,7 +14,7 @@ class ModUserlog: event=""): own_note = " Good for you!" if own else "" wanted_events = ["warns", "bans", "kicks", "mutes"] - if event: + if event and not isinstance(event, list): wanted_events = [event] embed = discord.Embed(color=discord.Color.dark_red()) embed.set_author(name=f"Userlog for {name}")