Mercurial > prosody-hg
comparison plugins/mod_scansion_record.lua @ 9346:2946f2bd2bb5
mod_scansion_record: Open log file
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 22 Sep 2018 13:52:55 +0200 |
| parents | 3c5c0a2521d5 |
| children | 9479523e209a |
comparison
equal
deleted
inserted
replaced
| 9345:3c5c0a2521d5 | 9346:2946f2bd2bb5 |
|---|---|
| 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(), module.host, os.date("%Y-%m-%d"), "scs", true); |
| 10 | |
| 11 local fh = io.open(record_file, "w"); | |
| 10 | 12 |
| 11 local function record(string) | 13 local function record(string) |
| 12 | 14 |
| 13 | 15 |
| 14 local function record_event(session, event) | 16 local function record_event(session, event) |
