mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 02:12:14 +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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user