From ccd7118c254c403500e0c7df27fb685c6ed52ec0 Mon Sep 17 00:00:00 2001 From: "musketstgstation@gmail.com" Date: Sat, 30 Oct 2010 19:01:53 +0000 Subject: [PATCH] Ban appeals URL moved to config.txt to better support other servers using our codebase. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@361 316c924e-a436-60f5-8080-3fe189b3f50e --- code/datums/configuration.dm | 4 ++++ code/modules/admin/admin.dm | 10 ++++++++-- config/config.txt | 3 +++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/code/datums/configuration.dm b/code/datums/configuration.dm index 7d3da6f6b43..874a88d9fcd 100644 --- a/code/datums/configuration.dm +++ b/code/datums/configuration.dm @@ -32,6 +32,7 @@ var/respawn = 1 var/server + var/banappeals /datum/configuration/New() var/list/L = typesof(/datum/game_mode) - /datum/game_mode @@ -161,6 +162,9 @@ if ("server") config.server = value + if ("banappeals") + config.banappeals = value + if ("probability") var/prob_pos = findtext(value, " ") var/prob_name = null diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index 250c1a51880..6683a654727 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -208,7 +208,10 @@ var/showadminmessages = 1 AddBan(M.ckey, M.computer_id, reason, usr.ckey, 1, mins) M << "\redYou have been banned by [usr.client.ckey].\nReason: [reason]." M << "\red This is a temporary ban, it will be removed in [mins] minutes." - M << "\red To try to resolve this matter head to http://tgstation13.servehttp.com" + if(config.banappeals) + M << "\red To try to resolve this matter head to [config.banappeals]" + else + M << "\red No ban appeals URL has been set." log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") message_admins("\blue[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis will be removed in [mins] minutes.") @@ -221,7 +224,10 @@ var/showadminmessages = 1 AddBan(M.ckey, M.computer_id, reason, usr.ckey, 0, 0) M << "\redYou have been banned by [usr.client.ckey].\nReason: [reason]." M << "\red This is a permanent ban." - M << "\red To try to resolve this matter head to http://tgstation13.servehttp.com" + if(config.banappeals) + M << "\red To try to resolve this matter head to [config.banappeals]" + else + M << "\red No ban appeals URL has been set." log_admin("[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") message_admins("\blue[usr.client.ckey] has banned [M.ckey].\nReason: [reason]\nThis is a permanent ban.") diff --git a/config/config.txt b/config/config.txt index 7d095af2a50..87d63f4f6f0 100644 --- a/config/config.txt +++ b/config/config.txt @@ -67,3 +67,6 @@ HOSTEDBY Yournamehere # set a server location for world reboot. Don't include the byond://, just give the address and port. # SERVER ss13.example.com:2506 + +#Ban appeals URL - usually for a forum or wherever people should go to contact your admins. +#BANAPPEALS http://justanotherday.example.com