Merge pull request #31768 from AnturK/ahelptrim

Trims ahelps
This commit is contained in:
Leo
2017-10-16 19:27:53 -02:00
committed by CitadelStationBot
parent cc96777b6b
commit 3857bfb2fc
2 changed files with 4 additions and 2 deletions

View File

@@ -489,7 +489,9 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
return
if(handle_spam_prevention(msg,MUTE_ADMINHELP))
return
msg = trim(msg)
if(!msg)
return

View File

@@ -131,7 +131,7 @@
//clean the message if it's not sent by a high-rank admin
if(!check_rights(R_SERVER|R_DEBUG,0)||irc)//no sending html to the poor bots
msg = sanitize(copytext(msg,1,MAX_MESSAGE_LEN))
msg = trim(sanitize(copytext(msg,1,MAX_MESSAGE_LEN)))
if(!msg)
return