From 2b619a2dd593fc93e007b1441808742d7bdd3123 Mon Sep 17 00:00:00 2001 From: SkyMarshal Date: Tue, 10 Apr 2012 23:52:28 -0700 Subject: [PATCH] Made bans automatically show the address for the appeal forum, if set in config. --- code/datums/configuration.dm | 5 +++++ code/modules/mob/mob.dm | 2 +- config/config.txt | 5 ++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/code/datums/configuration.dm b/code/datums/configuration.dm index a929f8342a2..d9974c18097 100644 --- a/code/datums/configuration.dm +++ b/code/datums/configuration.dm @@ -71,6 +71,8 @@ var/revival_brain_life = -1 var/require_heads_alive = 0 //For Rev. + var/appeal_address = "" + /datum/configuration/New() var/list/L = typesof(/datum/game_mode) - /datum/game_mode for (var/T in L) @@ -291,6 +293,9 @@ if("require_heads_alive") config.require_heads_alive = value + if("appeal_address") + config.appeal_address = value + else diary << "Unknown setting in configuration: '[name]'" diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 39cab8d3c98..50b349f03c7 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -711,7 +711,7 @@ if (isbanned) log_access("Failed Login: [src] - Banned") message_admins("\blue Failed Login: [src] - Banned") - alert(src,"You have been banned.\nReason : [isbanned]","Ban","Ok") + alert(src,"You have been banned.\nReason : [isbanned][config.appeal_address ? "\nYou may appeal this at [config.appeal_address]" : ""]","Ban","Ok") del(src) /* diff --git a/config/config.txt b/config/config.txt index 912e5e5c527..ee4fb259554 100644 --- a/config/config.txt +++ b/config/config.txt @@ -111,4 +111,7 @@ GUEST_JOBBAN 1 # FEATURE_OBJECT_SPELL_SYSTEM ##Toggle for having jobs load up from the .txt -# LOAD_JOBS_FROM_TXT \ No newline at end of file +# LOAD_JOBS_FROM_TXT + +##What address should banned people appeal ther ban at? Remember to escape the characters, if needed! +# APPEAL_ADDRESS -->APPEAL ADDRESS HERE<-- \ No newline at end of file