Made bans automatically show the address for the appeal forum, if set in config.

This commit is contained in:
SkyMarshal
2012-04-10 23:52:28 -07:00
parent 80158164dc
commit 2b619a2dd5
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -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]'"
+1 -1
View File
@@ -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)
/*
+4 -1
View File
@@ -111,4 +111,7 @@ GUEST_JOBBAN 1
# FEATURE_OBJECT_SPELL_SYSTEM
##Toggle for having jobs load up from the .txt
# LOAD_JOBS_FROM_TXT
# 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<--