From 82921948639f97db74fde09dc8e8a58dc8de072a Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 16 Jan 2018 15:28:00 -0500 Subject: [PATCH] Makes report issue handle null round IDs and server names (#34124) * Makes report issue handle null round IDs and server names * What Leo said * Add missing bracket * Parenthesis intensify --- interface/interface.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/interface/interface.dm b/interface/interface.dm index 9b87479a33..12712b77b6 100644 --- a/interface/interface.dm +++ b/interface/interface.dm @@ -67,7 +67,10 @@ return var/static/issue_template = file2text(".github/ISSUE_TEMPLATE.md") var/servername = CONFIG_GET(string/servername) - src << link("[githuburl]/issues/new[GLOB.round_id ? "?body=[url_encode("Issue reported from Round ID: [GLOB.round_id][servername ? " ([servername])" : ""]\n\n[issue_template]")]" : ""]") + var/href = issue_template + if(GLOB.round_id || servername) + href = "Issue reported from [GLOB.round_id ? " Round ID: [GLOB.round_id][servername ? " ([servername])" : ""]" : servername]\n\n[issue_template]" + DIRECT_OUTPUT(src, link("[githuburl]/issues/new?body=[url_encode(href)]")) else to_chat(src, "The Github URL is not set in the server configuration.") return