Software /
code /
prosody
Changeset
9357:0ae20fb3d4c6
mod_scansion_record: Rename main file handle
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 14:18:39 +0200 |
parents | 9356:d13540d83b8e |
children | 9358:bbc24fc734da |
files | plugins/mod_scansion_record.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua Sat Sep 22 14:10:16 2018 +0200 +++ b/plugins/mod_scansion_record.lua Sat Sep 22 14:18:39 2018 +0200 @@ -9,10 +9,10 @@ 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)