Fix skipping of length checks by hotfix
This commit is contained in:
parent
e74006c9b7
commit
f543fa4896
@ -80,7 +80,7 @@ async def handle(request):
|
|||||||
if data['type'] == 'DISCORD-RELAY-MESSAGE':
|
if data['type'] == 'DISCORD-RELAY-MESSAGE':
|
||||||
msg = discord.utils.escape_mentions(data['content'])[0:2000]
|
msg = discord.utils.escape_mentions(data['content'])[0:2000]
|
||||||
r = re.compile(r'\x1b(T|F|E|\(T@[^\)]*\))')
|
r = re.compile(r'\x1b(T|F|E|\(T@[^\)]*\))')
|
||||||
msg = r.sub('', data['content'])
|
msg = r.sub('', msg)
|
||||||
if 'context' in data.keys():
|
if 'context' in data.keys():
|
||||||
id = int(data['context'])
|
id = int(data['context'])
|
||||||
user = await get_or_fetch_user(id)
|
user = await get_or_fetch_user(id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user