invitespy: bugfix

This commit is contained in:
Ave Ozkal 2019-02-26 16:06:38 +03:00
parent d246e2f6ec
commit 78bf147bdc
No known key found for this signature in database
GPG key ID: 09356ABAA42C842B

View file

@ -76,7 +76,7 @@ class Logs:
msg = f"Suspicious message by {message.author.mention} "\ msg = f"Suspicious message by {message.author.mention} "\
f"({message.author.id}):" f"({message.author.id}):"
invites = self.invite_re.search(message.lower()) invites = self.invite_re.search(message.content.lower())
for invite in invites: for invite in invites:
msg += f"\n- Has invite: https://{invite[0]}" msg += f"\n- Has invite: https://{invite[0]}"
alert = True alert = True