mirror of
https://github.com/etlegacy/wolfadmin.git
synced 2024-11-10 06:41:53 +00:00
Fixed minor SQLite issue
* replace escape with tonumber for an integer value
This commit is contained in:
parent
e36d70aefa
commit
839036eb23
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ end
|
||||||
|
|
||||||
-- mutes
|
-- mutes
|
||||||
function sqlite3.addMute(victimId, invokerId, type, issued, duration, reason)
|
function sqlite3.addMute(victimId, invokerId, type, issued, duration, reason)
|
||||||
cur = assert(con:execute("INSERT INTO `mute` (`victim_id`, `invoker_id`, `type`, `issued`, `expires`, `duration`, `reason`) VALUES ("..tonumber(victimId)..", "..tonumber(invokerId)..", '"..util.escape(type).."', "..tonumber(issued)..", "..tonumber(issued + duration)..", "..tonumber(duration)..", '"..util.escape(reason).."')"))
|
cur = assert(con:execute("INSERT INTO `mute` (`victim_id`, `invoker_id`, `type`, `issued`, `expires`, `duration`, `reason`) VALUES ("..tonumber(victimId)..", "..tonumber(invokerId)..", "..tonumber(type)..", "..tonumber(issued)..", "..tonumber(issued + duration)..", "..tonumber(duration)..", '"..util.escape(reason).."')"))
|
||||||
end
|
end
|
||||||
|
|
||||||
function sqlite3.removeMute(muteId)
|
function sqlite3.removeMute(muteId)
|
||||||
|
|
Loading…
Reference in a new issue