Comparison

plugins/mod_scansion_record.lua @ 9356:d13540d83b8e

mod_scansion_record: Record into "scansion" instead of per VirtualHost
author Kim Alvefur <zash@zash.se>
date Sat, 22 Sep 2018 14:10:16 +0200
parent 9355:a31e0d549b74
child 9357:0ae20fb3d4c6
comparison
equal deleted inserted replaced
9355:a31e0d549b74 9356:d13540d83b8e
5 local full_jids = {}; 5 local full_jids = {};
6 6
7 local filters = require "util.filters"; 7 local filters = require "util.filters";
8 local id = require "util.id"; 8 local id = require "util.id";
9 9
10 local record_file = require "util.datamanager".getpath(id.medium():lower(), module.host, os.date("%Y%b%d"):lower(), "scs", true); 10 local record_file = require "util.datamanager".getpath(id.medium():lower(), "scansion", os.date("%Y%b%d"):lower(), "scs", true);
11 11
12 local fh = io.open(record_file, "w"); 12 local fh = io.open(record_file, "w");
13 13
14 local function record(string) 14 local function record(string)
15 fh:write(string); 15 fh:write(string);