mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
[MIRROR] refactors most spans (#9139)
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <KashL@t-online.de>
This commit is contained in:
@@ -9,11 +9,11 @@
|
||||
var/output = replacetext(CONFIG_GET(string/wikisearchurl), "%s", url_encode(query)) // CHOMPEdit
|
||||
src << link(output)
|
||||
else
|
||||
to_chat(src, "<span class='warning'> The wiki search URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_warning(" The wiki search URL is not set in the server configuration."))
|
||||
else
|
||||
src << link(CONFIG_GET(string/wikiurl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='warning'>The wiki URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_warning("The wiki URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/forum()
|
||||
@@ -25,7 +25,7 @@
|
||||
return
|
||||
src << link(CONFIG_GET(string/forumurl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='warning'>The forum URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_warning("The forum URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/rules()
|
||||
@@ -38,7 +38,7 @@
|
||||
return
|
||||
src << link(CONFIG_GET(string/rulesurl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The rules URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_danger("The rules URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/map()
|
||||
@@ -51,7 +51,7 @@
|
||||
return
|
||||
src << link(CONFIG_GET(string/mapurl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The map URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_danger("The map URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/github()
|
||||
@@ -64,7 +64,7 @@
|
||||
return
|
||||
src << link(CONFIG_GET(string/githuburl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The GitHub URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_danger("The GitHub URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/discord()
|
||||
@@ -77,7 +77,7 @@
|
||||
return
|
||||
src << link(CONFIG_GET(string/discordurl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The Discord URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_danger("The Discord URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/patreon()
|
||||
@@ -90,7 +90,7 @@
|
||||
return
|
||||
src << link(CONFIG_GET(string/patreonurl)) // CHOMPEdit
|
||||
else
|
||||
to_chat(src, "<span class='danger'>The Patreon URL is not set in the server configuration.</span>")
|
||||
to_chat(src, span_danger("The Patreon URL is not set in the server configuration."))
|
||||
return
|
||||
|
||||
/client/verb/hotkeys_help()
|
||||
|
||||
Reference in New Issue
Block a user