taking AA's suggestion

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
Kyep
2020-09-16 18:47:38 +00:00
committed by GitHub
co-authored by AffectedArc07
parent bef1b0b3bc
commit 2e9b2fe7e3
+2 -1
View File
@@ -223,7 +223,8 @@ GLOBAL_VAR_INIT(world_topic_spam_protect_time, world.timeofday)
return "Bad Key"
else
var/prtext = input["announce"]
if(copytext(prtext, 1, 23) == "Pull+Request+merged+by") // its urlencoded
var/pr_substring = copytext(prtext, 1, 23)
if(pr_substring == "Pull Request merged by")
GLOB.pending_server_update = TRUE
for(var/client/C in GLOB.clients)
to_chat(C, "<span class='announce'>PR: [prtext]</span>")