Skip to content

Commit

Permalink
Merge pull request tgstation#10446 from GunHog/Radio_Fix
Browse files Browse the repository at this point in the history
Fix for request console emergency broadcast runtime
  • Loading branch information
Jordie0608 committed Jul 9, 2015
2 parents db8655d + 7d744fa commit ed9fcf1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/scripting/Implementations/Telecomms.dm
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ var/list/allowed_custom_spans = list(SPAN_ROBOT,SPAN_YELL,SPAN_ITALICS,SPAN_SANS
signal.data["verb_exclaim"] = interpreter.GetCleanVar("$exclaim")
var/list/setspans = interpreter.GetCleanVar("$filters") //Save the span vector/list to a holder list
setspans &= allowed_custom_spans //Prune out any illegal ones. Go ahead, comment this line out. See the horror you can unleash!
signal.data["spans"] = setspans //Apply it to the signal
if(islist(setspans)) //Previous comment block was right. Players cannot be trusted with ANYTHING. At all. Ever.
signal.data["spans"] = setspans //Apply new span to the signal only if it is a valid list, made using vector() in the script.

// If the message is invalid, just don't broadcast it!
if(signal.data["message"] == "" || !signal.data["message"])
Expand Down

0 comments on commit ed9fcf1

Please sign in to comment.