diff options
-rw-r--r-- | npc/functions/aurora.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt index 0e2c81a60..9492b7ea5 100644 --- a/npc/functions/aurora.txt +++ b/npc/functions/aurora.txt @@ -814,7 +814,9 @@ function script FYRewardEvent { DelItemFromEveryPlayer(EventOre); */ // Specing wants scoreboards to be preserved - api_send(505, "[79, 21698, '', \""+.@score$+"\"]"); + // Needs sanitization, or "\n" breaks it + .@score$=replacestr(.@score$, "\n", "\\n"); + api_send(505, "[79, 21698, \"\", \""+.@score$+"\"]"); } consolebug "FYRewardEvent end %d", gettimetick(0); return; |