anchor.diff:  				to_chat(world, "Autoadmin rank not found")
   			else
   				new /datum/admins(autorank, ckey)
  +	//CITADEL EDIT
  +	if(check_rights_for(src, R_DEBUG))	//check if autoadmin gave us it
  +		debug_tools_allowed = TRUE
  +	if(!debug_tools_allowed)
  +		world.SetConfig("APP/admin", ckey, null)
  +	//END CITADEL EDIT
   	if(CONFIG_GET(flag/enable_localhost_rank) && !connecting_admin)
   		var/localhost_addresses = list("127.0.0.1", "::1")
   		if(isnull(address) || (address in localhost_addresses))
  
positive.code: 	var/connecting_admin = FALSE //because de-admined admins connecting should be treated like admins.
  	//Admin Authorisation
  	holder = GLOB.admin_datums[ckey]
  	if(holder)
  		GLOB.admins |= src
  		holder.owner = src
  		connecting_admin = TRUE
  	else if(GLOB.deadmins[ckey])
  		verbs += /client/proc/readmin
  		connecting_admin = TRUE
  
negative.code: 	return var_name != NAMEOF(src, holder) && ..()
  
  /client/New(TopicData)
  	world.SetConfig("APP/admin", ckey, "role=admin")			//CITADEL EDIT - Allows admins to reboot in OOM situations
  	var/tdata = TopicData //save this for later use
  	chatOutput = new /datum/chatOutput(src)
  	TopicData = null							//Prevent calls to client.Topic from connect
  