aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_scansion_record.lua
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
commitae6a657fbe9e0299d6264e4377d920f372439a59 (patch)
tree2ad15808074f4cf0fe80934e22bb4be9e032226c /plugins/mod_scansion_record.lua
parent139046d67cae46e3a3004fd6b6585279afc4909e (diff)
downloadprosody-ae6a657fbe9e0299d6264e4377d920f372439a59.tar.gz
prosody-ae6a657fbe9e0299d6264e4377d920f372439a59.zip
mod_scansion_record: Rename main file handle
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-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)