mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-13 03:13:51 +00:00
Merge pull request #35103 from Cyberboss/ReportClientVersion
Adds client version to ingame reporting
This commit is contained in:
@@ -67,10 +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)
|
||||||
var/href = issue_template
|
var/url_params = "Reporting client version: [byond_version]\n\n[issue_template]"
|
||||||
if(GLOB.round_id || servername)
|
if(GLOB.round_id || servername)
|
||||||
href = "Issue reported from [GLOB.round_id ? " Round ID: [GLOB.round_id][servername ? " ([servername])" : ""]" : servername]\n\n[issue_template]"
|
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(href)]"))
|
DIRECT_OUTPUT(src, link("[githuburl]/issues/new?body=[url_encode(url_params)]"))
|
||||||
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