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
This commit is contained in:
committed by
CitadelStationBot
parent
d2d1a063a7
commit
8292194863
@@ -67,7 +67,10 @@
|
|||||||
return
|
return
|
||||||
var/static/issue_template = file2text(".github/ISSUE_TEMPLATE.md")
|
var/static/issue_template = file2text(".github/ISSUE_TEMPLATE.md")
|
||||||
var/servername = CONFIG_GET(string/servername)
|
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
|
else
|
||||||
to_chat(src, "<span class='danger'>The Github URL is not set in the server configuration.</span>")
|
to_chat(src, "<span class='danger'>The Github URL is not set in the server configuration.</span>")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user