anchor.diff:  		qdel(query_unban)
   		return
   	qdel(query_unban)
  -	log_admin_private("[kn] has unbanned [player_key] from [role].")
  -	message_admins("[kna] has unbanned [player_key] from [role].")
  +	log_admin_private("[kn] has unbanned [target] from [role].")
  +	message_admins("[kna] has unbanned [target] from [role].")
   	var/client/C = GLOB.directory[player_key]
   	if(C)
   		build_ban_cache(C)
  
positive.code: 			var/unban_datetime = query_unban_search_bans.item[15]
  			var/unban_key = query_unban_search_bans.item[16]
  			var/unban_round_id = query_unban_search_bans.item[17]
  			output += "<div class='banbox'><div class='header [unban_datetime ? "unbanned" : "banned"]'><b>[player_key]</b>[applies_to_admins ? " <b>ADMIN</b>" : ""] banned by <b>[admin_key]</b> from <b>[role]</b> on <b>[ban_datetime]</b> during round <b>#[ban_round_id]</b>.<br>"
  			if(!expiration_time)
  				output += "<b>Permanent ban</b>."
  			else
  
negative.code: 	player_ip = sanitizeSQL(player_ip)
  	player_cid = sanitizeSQL(player_cid)
  	var/bantime
  	if(player_ckey)
  		var/datum/DBQuery/query_edit_ban_get_player = SSdbcore.NewQuery("SELECT byond_key, (SELECT bantime FROM [format_table_name("ban")] WHERE id = [ban_id]), ip, computerid FROM [format_table_name("player")] WHERE ckey = '[player_ckey]'")
  		if(!query_edit_ban_get_player.warn_execute())
  			qdel(query_edit_ban_get_player)
  			return
  		if(query_edit_ban_get_player.NextRow())
  			player_key = query_edit_ban_get_player.item[1]
  			bantime = query_edit_ban_get_player.item[2]
  			if(use_last_connection)
  				player_ip = query_edit_ban_get_player.item[3]
  				player_cid = query_edit_ban_get_player.item[4]
  		else
  			if(use_last_connection)
  				to_chat(usr, "<span class='danger'>Ban not edited. [player_key]/([player_ckey]) hasn't been seen before, unable to use IP and CID from last connection.</span>")
  				qdel(query_edit_ban_get_player)
  				return
  		qdel(query_edit_ban_get_player)
  	if(applies_to_admins && (applies_to_admins != old_applies))
  		var/admin_ckey = sanitizeSQL(usr.client.ckey)
  		var/datum/DBQuery/query_check_adminban_count = SSdbcore.NewQuery("SELECT COUNT(DISTINCT bantime) FROM [format_table_name("ban")] WHERE a_ckey = '[admin_ckey]' AND applies_to_admins = 1 AND unbanned_datetime IS NULL AND (expiration_time IS NULL OR expiration_time > NOW())")
  