From 78bf147bdc0678ce1ce8fcad2a9cea376d30f545 Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 26 Feb 2019 16:06:38 +0300 Subject: [PATCH] invitespy: bugfix --- cogs/logs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/logs.py b/cogs/logs.py index 1f9c39a..64a81ce 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -76,7 +76,7 @@ class Logs: msg = f"Suspicious message by {message.author.mention} "\ f"({message.author.id}):" - invites = self.invite_re.search(message.lower()) + invites = self.invite_re.search(message.content.lower()) for invite in invites: msg += f"\n- Has invite: https://{invite[0]}" alert = True