anchor.diff:  		if("add")
   			var/new_ckey = ckey(input(usr,"New admin's ckey","Admin ckey", null) as text|null)
   			if(!new_ckey)
  -				return
  -			if(new_ckey in GLOB.admin_datums)
  +				return
  +			if(new_ckey in GLOB.admin_datums)
   				to_chat(usr, "<font color='red'>Error: Topic 'editrights': [new_ckey] is already an admin</font>")
   				return
   			adm_ckey = new_ckey
  
positive.code: 				prev = next
  
  			previous_rights = R.rights
  	else
  		if(!SSdbcore.Connect())
  			log_world("Failed to connect to database in load_admin_ranks(). Reverting to legacy system.")
  			GLOB.world_game_log << "Failed to connect to database in load_admin_ranks(). Reverting to legacy system."
  			config.admin_legacy_system = 1
  			load_admin_ranks()
  			return
  
negative.code: 			if(D.rank.rights & R_DEBUG) //grant profile access
  				world.SetConfig("APP/admin", ckey, "role=admin")
  			D.associate(GLOB.directory[ckey])	//find the client for a ckey if they are connected and associate them with the new admin datum
  	else
  		if(!SSdbcore.Connect())
  			log_world("Failed to connect to database in load_admins(). Reverting to legacy system.")
  			GLOB.world_game_log << "Failed to connect to database in load_admins(). Reverting to legacy system."
  			config.admin_legacy_system = 1
  			load_admins()
  			return
  