exclude me from discord filter

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-24 21:22:05 +02:00
parent 0d7437ca1c
commit 2a05363a2d
1 changed files with 2 additions and 2 deletions

View File

@ -522,7 +522,7 @@ def message2(v, username):
message = sanitize_raw_body(request.values.get("message"), False)
if not message: abort(400, "Message is empty!")
if 'linkedin.com' in message: abort(403, "This domain 'linkedin.com' is banned.")
if 'discord.gg' in message or 'discord.com' in message or 'discordapp.com' in message:
if v.id != AEVANN_ID and ('discord.gg' in message or 'discord.com' in message or 'discordapp.com' in message):
abort(403, "Stop grooming!")
body_html = sanitize(message)
@ -578,7 +578,7 @@ def messagereply(v):
if 'linkedin.com' in body: abort(403, "This domain 'linkedin.com' is banned")
if 'discord.gg' in body or 'discord.com' in body or 'discordapp.com' in body:
if v.id != AEVANN_ID and ('discord.gg' in body or 'discord.com' in body or 'discordapp.com' in body):
abort(403, "Stop grooming!")
id = request.values.get("parent_id")