aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-22 14:18:39 +0200
committerKim Alvefur <zash@zash.se>2018-09-22 14:18:39 +0200
commitccd756b54059c90f6ee10df7ca825a444492ee8a (patch)
tree2ad15808074f4cf0fe80934e22bb4be9e032226c
parent42045a538d7da6b44ad24d9cd4d58de81b595f18 (diff)
downloadprosody-ccd756b54059c90f6ee10df7ca825a444492ee8a.tar.gz
prosody-ccd756b54059c90f6ee10df7ca825a444492ee8a.zip
mod_scansion_record: Rename main file handle
-rw-r--r--plugins/mod_scansion_record.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua
index 006412f7..6ac3a31c 100644
--- a/plugins/mod_scansion_record.lua
+++ b/plugins/mod_scansion_record.lua
@@ -9,10 +9,10 @@ local id = require "util.id";
local record_file = require "util.datamanager".getpath(id.medium():lower(), "scansion", os.date("%Y%b%d"):lower(), "scs", true);
-local fh = io.open(record_file, "w");
+local scan = io.open(record_file, "w");
local function record(string)
- fh:write(string);
+ scan:write(string);
end
local function record_event(session, event)