Mercurial > prosody-hg
comparison plugins/mod_scansion_record.lua @ 9355:a31e0d549b74
mod_scansion_record: Import util.filters
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 22 Sep 2018 14:08:24 +0200 |
| parents | b042aa047d80 |
| children | d13540d83b8e |
comparison
equal
deleted
inserted
replaced
| 9354:b042aa047d80 | 9355:a31e0d549b74 |
|---|---|
| 2 local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; | 2 local devices = { "", "phone", "laptop", "tablet", "toaster", "fridge", "shoe" }; |
| 3 local users = {}; | 3 local users = {}; |
| 4 | 4 |
| 5 local full_jids = {}; | 5 local full_jids = {}; |
| 6 | 6 |
| 7 local filters = require "util.filters"; | |
| 7 local id = require "util.id"; | 8 local id = require "util.id"; |
| 8 | 9 |
| 9 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(), module.host, os.date("%Y%b%d"):lower(), "scs", true); |
| 10 | 11 |
| 11 local fh = io.open(record_file, "w"); | 12 local fh = io.open(record_file, "w"); |
