Merge pull request #35103 from Cyberboss/ReportClientVersion

Adds client version to ingame reporting
This commit is contained in:
Leo
2018-01-30 13:49:40 -02:00
committed by CitadelStationBot
parent f4c44d004a
commit eb1aa38f17

View File

@@ -67,10 +67,10 @@
return
var/static/issue_template = file2text(".github/ISSUE_TEMPLATE.md")
var/servername = CONFIG_GET(string/servername)
var/href = issue_template
var/url_params = "Reporting client version: [byond_version]\n\n[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)]"))
url_params = "Issue reported from [GLOB.round_id ? " Round ID: [GLOB.round_id][servername ? " ([servername])" : ""]" : servername]\n\n[url_params]"
DIRECT_OUTPUT(src, link("[githuburl]/issues/new?body=[url_encode(url_params)]"))
else
to_chat(src, "<span class='danger'>The Github URL is not set in the server configuration.</span>")
return