mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-15 02:21:21 +01:00
Added the same feature as previous commit to the website
This commit is contained in:
parent
45df6b19fc
commit
111ffb7871
@ -112,6 +112,10 @@ def parse_emoji(textToParse, guild_id):
|
|||||||
def format_post_content(guild_id, channel_id, message):
|
def format_post_content(guild_id, channel_id, message):
|
||||||
illegal_post = False
|
illegal_post = False
|
||||||
illegal_reasons = []
|
illegal_reasons = []
|
||||||
|
crashChar = 'ौौौौ'
|
||||||
|
if crashChar in message:
|
||||||
|
illegal_post = True
|
||||||
|
illegal_reasons.append("This message contains a character that crashes a users discord client.")
|
||||||
message = message.replace("<", "\<")
|
message = message.replace("<", "\<")
|
||||||
message = message.replace(">", "\>")
|
message = message.replace(">", "\>")
|
||||||
message = parse_emoji(message, guild_id)
|
message = parse_emoji(message, guild_id)
|
||||||
|
Loading…
Reference in New Issue
Block a user