invitespy: bugfix

This commit is contained in:
Ave Ozkal 2019-02-26 16:08:43 +03:00
parent 78bf147bdc
commit 9ac3421d52
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} "\
f"({message.author.id}):"
invites = self.invite_re.search(message.content.lower())
invites = self.invite_re.findall(message.content.lower())
for invite in invites:
msg += f"\n- Has invite: https://{invite[0]}"
alert = True