aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-12-23 10:42:23 +0100
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2018-12-23 10:42:23 +0100
commit22b2214a5494fb31e7a827981da5e1a458cbf72e (patch)
tree61060fcdef5896c777d3f4f7be6ec66be508abb9
parentd42923c85fe063901d36fd95ab49339db33910ed (diff)
downloadxban2-22b2214a5494fb31e7a827981da5e1a458cbf72e.tar.gz
xban2-22b2214a5494fb31e7a827981da5e1a458cbf72e.tar.bz2
xban2-22b2214a5494fb31e7a827981da5e1a458cbf72e.zip
fixed undefined value
-rw-r--r--gui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.lua b/gui.lua
index f6c18ce..c459f71 100644
--- a/gui.lua
+++ b/gui.lua
@@ -43,7 +43,7 @@ local function get_record_simple(name)
end
local record = { }
for _, rec in ipairs(e.record) do
- local msg = (os.date("%Y-%m-%d %H:%M:%S", rec.time).." | " .. (rec.type or ban).." | "
+ local msg = (os.date("%Y-%m-%d %H:%M:%S", rec.time).." | " .. (rec.type or "ban").." | "
..(rec.reason or "No reason given."))
table.insert(record, msg)
end