Fixes ident bans(for flat file atleast)

This commit is contained in:
d3athrow
2013-09-11 00:26:49 -05:00
parent 85f1fe7235
commit 2b39cabf84
3 changed files with 5 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ var/appearance_keylist[0] //to store the keys
/proc/appearance_isbanned(mob/M)
if(M)
for(var/s in appearance_keylist)
if(findtext(s, "[M.ckey]") == 1)
if( findtext(s,M.ckey) == 1 )
var/startpos = findtext(s, "## ") + 3
if(startpos && startpos < length(s))
var/text = copytext(s, startpos, 0)
@@ -44,6 +44,7 @@ DEBUG
if(config.ban_legacy_system)
var/savefile/S=new("data/appearance_full.ban")
S["keys[0]"] >> appearance_keylist
world.log << S["keys[0]"]
log_admin("Loading appearance_rank")
S["runonce"] >> appearanceban_runonce

View File

@@ -255,7 +255,8 @@ datum/preferences
dat += {"</center><hr><table><tr><td width='340px' height='320px'>
<b>Name:</b> "}
// END AUTOFIX
if(appearance_isbanned(user)) dat += "<b>You are banned from using custom names and appearances. You can continue to adjust your characters, but you will be randomised once you join the game.</b><br>"
if(appearance_isbanned(user))
dat += "<b>You are banned from using custom names and appearances. You can continue to adjust your characters, but you will be randomised once you join the game.</b><br>"
// AUTOFIXED BY fix_string_idiocy.py
// C:\Users\Rob\Documents\Projects\vgstation13\code\modules\client\preferences.dm:234: dat += "<a href='?_src_=prefs;preference=name;task=input'><b>[real_name]</b></a><br>"

View File

@@ -365,8 +365,7 @@
if(chosen_language)
if(is_alien_whitelisted(src, client.prefs.language) || !config.usealienwhitelist || !(chosen_language.flags & WHITELISTED))
new_character.add_language(client.prefs.language)
if(ticker.random_players)//|| appearance_isbanned(new_character)) disabling ident bans for now
if(ticker.random_players || appearance_isbanned(src)) //disabling ident bans for now
new_character.gender = pick(MALE, FEMALE)
client.prefs.real_name = random_name(new_character.gender)
client.prefs.randomize_appearance_for(new_character)