Merge pull request #3439 from Citadel-Station-13/upstream-merge-31768

[MIRROR] Trims ahelps
This commit is contained in:
LetterJay
2017-10-17 08:54:14 -04:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+3 -1
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
+1 -1
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