Software /
code /
prosody
Comparison
plugins/mod_scansion_record.lua @ 9353:02ae04efab0f
mod_scansion_record: Tweak filename
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 22 Sep 2018 14:05:59 +0200 |
parent | 9352:0fdb70ad9fcc |
child | 9354:b042aa047d80 |
comparison
equal
deleted
inserted
replaced
9352:0fdb70ad9fcc | 9353:02ae04efab0f |
---|---|
4 | 4 |
5 local full_jids = {}; | 5 local full_jids = {}; |
6 | 6 |
7 local id = require "util.id"; | 7 local id = require "util.id"; |
8 | 8 |
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():lower(), module.host, os.date("%Y%b%d"):lower(), "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 fh:write(string); | 14 fh:write(string); |