 
 sync = require 'sync'
 transaction = require 'any-db-transaction'
-game = require './lib/game'
+game = require '../lib/game.coffee'
 
 
 # Check if a character with the given name exists.

	tx.query.sync(tx,
		"DELETE FROM items WHERE owner = $1",
		[ character_id ])
	
	tx.commit.sync(tx)
	return {
		result: 'ok'

				result: 'fail'
				reason: "character ##{character_id} is in battle ##{res.rows[0].battle}"
			}

	game.goEscape.sync(null, tx, character_id)

	# if the character we delete is active, unselect it
