Fixes horrible oversigth in things. (#7069)

Thanks granpa skull!
This commit is contained in:
Karolis
2019-09-26 23:05:22 +03:00
committed by Erki
parent c608b7cd63
commit 60fae57b80
2 changed files with 19 additions and 3 deletions

View File

@@ -169,10 +169,11 @@
if(!msg)
return
sanitize(msg)
msg = sanitize(msg)
sender = sanitize(sender, encode=0)
post_webhook_event(WEBHOOK_ADMIN_PM, list("title"="Help is requested", "message"="PlayerPM to **[sender]** from **[key_name(src)]**: ```[html_decode(msg)]```"))
discord_bot.send_to_admins("PlayerPM to [sender] from [key_name(src)]: [html_decode(msg)]")
post_webhook_event(WEBHOOK_ADMIN_PM, list("title"="Help is requested", "message"="PlayerPM to **[discord_escape(sender)]** from **[discord_escape(key_name(src))]**: ```[discord_escape(html_decode(msg))]```"))
discord_bot.send_to_admins("PlayerPM to [discord_escape(sender)] from [discord_escape(key_name(src))]: [discord_escape(html_decode(msg))]")
to_chat(src, "<span class='pm'><span class='out'>" + create_text_tag("pm_out_alt", "", src) + " to <span class='name'>Discord-[sender]</span>: <span class='message'>[msg]</span></span></span>")