From ae6a657fbe9e0299d6264e4377d920f372439a59 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 22 Sep 2018 14:18:39 +0200 Subject: mod_scansion_record: Rename main file handle --- plugins/mod_scansion_record.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_scansion_record.lua') 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) -- cgit v1.2.3