Skip to content

Commit

Permalink
spag
Browse files Browse the repository at this point in the history
  • Loading branch information
harryob committed Apr 8, 2024
1 parent 252fc26 commit d2af253
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions code/controllers/configuration/entries/general.dm
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ This maintains a list of ip addresses that are able to bypass topic filtering.
min_val = 0

/datum/config_entry/string/client_warn_message
default = "Your version of byond may have issues or be blocked from accessing this server in the future."
default = "Your version of BYOND may have issues or be blocked from accessing this server in the future."

/datum/config_entry/flag/client_warn_popup

Expand All @@ -659,7 +659,7 @@ This maintains a list of ip addresses that are able to bypass topic filtering.
min_val = 500

/datum/config_entry/string/client_error_message
default = "Your version of byond is too old, may have issues, and is blocked from accessing this server."
default = "Your version of BYOND is too old, may have issues, and is blocked from accessing this server."

/datum/config_entry/number/client_error_build
default = null
Expand Down
4 changes: 2 additions & 2 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -376,14 +376,14 @@ GLOBAL_LIST_INIT(whitelisted_client_procs, list(

if (byond_version < warn_version || (byond_version == warn_version && byond_build < warn_build)) //We have words for this client.
if(CONFIG_GET(flag/client_warn_popup))
var/msg = "<b>Your version of byond may be getting out of date:</b><br>"
var/msg = "<b>Your version of BYOND may be getting out of date:</b><br>"
msg += CONFIG_GET(string/client_warn_message) + "<br><br>"
msg += "Your version: [byond_version].[byond_build]<br>"
msg += "Required version to remove this message: [warn_version].[warn_build] or later<br>"
msg += "Visit <a href=\"https://www.byond.com/download\">BYOND's website</a> to get the latest version of BYOND.<br>"
src << browse(msg, "window=warning_popup")
else
to_chat_immediate(src, SPAN_DANGER("<b>Your version of byond may be getting out of date:</b>"))
to_chat_immediate(src, SPAN_DANGER("<b>Your version of BYOND may be getting out of date:</b>"))
to_chat_immediate(src, CONFIG_GET(string/client_warn_message))
to_chat_immediate(src, "Your version: [byond_version].[byond_build]")
to_chat_immediate(src, "Required version to remove this message: [warn_version].[warn_build] or later")
Expand Down

0 comments on commit d2af253

Please sign in to comment.