mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed aliases not being updated on connect
This commit is contained in:
parent
a2f7f1dec4
commit
aef9e0d426
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue