fixed graveyard inconsistence bug

This commit is contained in:
dodo 2010-10-26 22:42:22 +02:00
parent 92524e2cbb
commit e7839b4c4f
1 changed files with 3 additions and 2 deletions

View File

@ -75,6 +75,7 @@ if name == "" then
end
ttl = os.time() + config.ttl
assert(con:execute("insert into tokens (prefix, token, ttl) values ('"..prefix.."', '"..token.."', "..ttl..");"))
assert(con:execute("delete from graveyard where prefix='"..prefix.."';"))
print "* add token:"
print(token)
print("* prefix to remember: "..prefix)