diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-22 14:28:39 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-22 14:28:39 +0200 |
commit | 59acf797f31c273a394223c557678758c68d4fc5 (patch) | |
tree | cb20b8bf06aed5e8fccf603bd7fd5af52e818bf3 /plugins/mod_scansion_record.lua | |
parent | 86d5f1d8fd47b2a84cf6f9470d5947166830fcf8 (diff) | |
download | prosody-59acf797f31c273a394223c557678758c68d4fc5.tar.gz prosody-59acf797f31c273a394223c557678758c68d4fc5.zip |
mod_scansion_record: Split up construction of filename for reuse of parts later
Diffstat (limited to 'plugins/mod_scansion_record.lua')
-rw-r--r-- | plugins/mod_scansion_record.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/mod_scansion_record.lua b/plugins/mod_scansion_record.lua index e637d104..0f834c41 100644 --- a/plugins/mod_scansion_record.lua +++ b/plugins/mod_scansion_record.lua @@ -6,8 +6,11 @@ local full_jids = {}; local filters = require "util.filters"; local id = require "util.id"; +local dm = require "util.datamanager"; -local record_file = require "util.datamanager".getpath(id.medium():lower(), "scansion", os.date("%Y%b%d"):lower(), "scs", true); +local record_id = id.medium():lower(); +local record_date = os.date("%Y%b%d"):lower(); +local record_file = dm.getpath(record_id, "scansion", record_date, "scs", true); local scan = io.open(record_file, "w"); |