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 | 26bcf9c7a74610ed8c2c0bca856b993b648cddf3 (patch) | |
tree | cb20b8bf06aed5e8fccf603bd7fd5af52e818bf3 /plugins | |
parent | da949c0ec47435eceb2c2a07c2224ba5e46cb154 (diff) | |
download | prosody-26bcf9c7a74610ed8c2c0bca856b993b648cddf3.tar.gz prosody-26bcf9c7a74610ed8c2c0bca856b993b648cddf3.zip |
mod_scansion_record: Split up construction of filename for reuse of parts later
Diffstat (limited to 'plugins')
-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"); |