mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
* Corrects record_feedback()'s copy/paste comment (#74962)
## About The Pull Request
Corrects `record_feedback()`'s copy/paste comment.
## Pointless history
Originally being added in e2a8a5e, it kept its name and args for quite a
few years, that was until #32188 which had it renamed to
`record_feedback` and its args pretty much doubled. In between these
times the known copy/paste comment was already around, but that wasn't
updated, until now apparently.
* Corrects record_feedback()'s copy/paste comment
---------
Co-authored-by: Zandario <zandarioh@gmail.com>
20 lines
1.1 KiB
Plaintext
20 lines
1.1 KiB
Plaintext
/// Verbs created to help server operators with generating certain config files.
|
|
|
|
/client/proc/generate_job_config()
|
|
set name = "Generate Job Configuration"
|
|
set category = "Server"
|
|
set desc = "Generate a job configuration (jobconfig.toml) file for the server. If TOML file already exists, will re-generate it based off the already existing config values. Will migrate from the old jobs.txt format if necessary."
|
|
|
|
if(!check_rights(R_SERVER))
|
|
return
|
|
|
|
if(tgui_alert(usr, "This verb is not at all useful if you are not a server operator with access to the configuration folder. Do you wish to proceed?", "Generate jobconfig.toml for download", list("Yes", "No")) != "Yes")
|
|
return
|
|
|
|
if(SSjob.generate_config(usr))
|
|
to_chat(usr, span_notice("Job configuration file generated. Download prompt should appear now."))
|
|
else
|
|
to_chat(usr, span_warning("Job configuration file could not be generated. Check the server logs / runtimes / above warning messages for more information."))
|
|
|
|
SSblackbox.record_feedback("tally", "admin_verb", 1, "Generate Job Configuration") // If you are copy-pasting this, ensure the 4th parameter is unique to the new proc!
|