Fixed aliases not being updated on connect

This commit is contained in:
Timo Smit 2019-01-03 11:28:22 +01:00
parent a2f7f1dec4
commit aef9e0d426
2 changed files with 2 additions and 2 deletions

View file

@ -223,7 +223,7 @@ function mysql.addAlias(playerid, alias, lastused)
end
function mysql.updateAlias(aliasid, lastused)
cur = assert(con:execute("UPDATE `alias` SET `lastused`="..tonumber(lastused)..", `used`=`used`+1 WHERE `id`='"..util.escape(aliasid).."'"))
cur = assert(con:execute("UPDATE `alias` SET `lastused`="..tonumber(lastused)..", `used`=`used`+1 WHERE `id`='"..tonumber(aliasid).."'"))
end
function mysql.getAliasesCount(playerid)

View file

@ -223,7 +223,7 @@ function sqlite3.addAlias(playerid, alias, lastused)
end
function sqlite3.updateAlias(aliasid, lastused)
cur = assert(con:execute("UPDATE `alias` SET `lastused`="..tonumber(lastused)..", `used`=`used`+1 WHERE `id`='"..util.escape(aliasid).."'"))
cur = assert(con:execute("UPDATE `alias` SET `lastused`="..tonumber(lastused)..", `used`=`used`+1 WHERE `id`='"..tonumber(aliasid).."'"))
end
function sqlite3.getAliasesCount(playerid)