Comparison

plugins/mod_scansion_record.lua @ 9348:e1de3245c696

mod_scansion_record: Finish function for writing data
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 13:53:54 +0200
parent 9347:9479523e209a
child 9349:7e16e4ecd090
comparison
equal deleted inserted replaced
9347:9479523e209a 9348:e1de3245c696
9 local record_file = require "util.datamanager".getpath(id.medium(), module.host, os.date("%Y-%m-%d"), "scs", true); 9 local record_file = require "util.datamanager".getpath(id.medium(), module.host, os.date("%Y-%m-%d"), "scs", true);
10 10
11 local fh = io.open(record_file, "w"); 11 local fh = io.open(record_file, "w");
12 12
13 local function record(string) 13 local function record(string)
14 14 fh:write(string);
15 end
15 16
16 local function record_event(session, event) 17 local function record_event(session, event)
17 end 18 end
18 19
19 local function record_stanza(stanza, session, verb) 20 local function record_stanza(stanza, session, verb)