From aef9e0d4264d06734b94e9522852bb482786287c Mon Sep 17 00:00:00 2001 From: Timo Smit Date: Thu, 3 Jan 2019 11:28:22 +0100 Subject: [PATCH] Fixed aliases not being updated on connect --- luamods/wolfadmin/db/mysql.lua | 2 +- luamods/wolfadmin/db/sqlite3.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/luamods/wolfadmin/db/mysql.lua b/luamods/wolfadmin/db/mysql.lua index d084372..e8f8fdd 100644 --- a/luamods/wolfadmin/db/mysql.lua +++ b/luamods/wolfadmin/db/mysql.lua @@ -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) diff --git a/luamods/wolfadmin/db/sqlite3.lua b/luamods/wolfadmin/db/sqlite3.lua index 4296e9d..a184cb1 100644 --- a/luamods/wolfadmin/db/sqlite3.lua +++ b/luamods/wolfadmin/db/sqlite3.lua @@ -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)