anchor.diff:  		if(query_create_ban_get_player.NextRow())
   			player_key = query_create_ban_get_player.item[1]
   			if(use_last_connection)
  -				player_ip = query_create_ban_get_player.item[2]
  -				player_cid = query_create_ban_get_player.item[3]
  +				if (!isnull(player_ip))
  +					player_ip = query_create_ban_get_player.item[2]
  +				if (!isnull(player_cid))
  +					player_cid = query_create_ban_get_player.item[3]
   		else
   			if(use_last_connection)
  -				to_chat(usr, "<span class='danger'>Ban not created. [player_key]/([player_ckey]) hasn't been seen before, unable to use IP and CID from last connection.</span>")
  -				qdel(query_create_ban_get_player)
  -				return
  +				if(alert(usr, "[player_key]/([player_ckey]) has not been seen before, unable to use IP and CID from last connection. Are you sure you want to create a ban for them?", "Unknown key", "Yes", "No", "Cancel") != "Yes")
  +					qdel(query_create_ban_get_player)
  +					return
   			else
   				if(alert(usr, "[player_key]/([player_ckey]) has not been seen before, are you sure you want to create a ban for them?", "Unknown key", "Yes", "No", "Cancel") != "Yes")
   					qdel(query_create_ban_get_player)
  
positive.code: 			. += player_cid
  		else
  			. += "NULL"
  	. = jointext(., "/")
negative.code: 	<div class='inputbox'></div></label>
  	<input type='text' name='keytext' size='26' value='[player_key]'>
  	<label class='inputlabel checkbox'>IP:
  	<input type='checkbox' id='ipcheck' name='ipcheck' value='1'[isnull(duration) " checked": ""]>
  	<div class='inputbox'></div></label>
  	<input type='text' name='iptext' size='18' value='[player_ip]'>
  	<label class='inputlabel checkbox'>CID:
  	<input type='checkbox' id='cidcheck' name='cidcheck' value='1' checked>
  	<div class='inputbox'></div></label>
  	<input type='text' name='cidtext' size='14' value='[player_cid]'>
  	<br>
  	<label class='inputlabel checkbox'>Use IP and CID from last connection of key
  	<input type='checkbox' id='lastconn' name='lastconn' value='1' [(isnull(duration) && !player_ip) || (!player_cid) ? " checked": ""]>
  	<div class='inputbox'></div></label>
  	<label class='inputlabel checkbox'>Applies to Admins
  	<input type='checkbox' id='applyadmins' name='applyadmins' value='1'[applies_to_admins ? " checked": ""]>
  