Mercurial > prosody-hg
comparison plugins/mod_storage_xep0227.lua @ 12175:39921b979edb
mod_storage_xep0227: Ignore luacheck warning
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 10 Jan 2022 15:50:55 +0000 |
| parents | a38b7cb5fd6a |
| children | e7639625a848 |
comparison
equal
deleted
inserted
replaced
| 12174:a38b7cb5fd6a | 12175:39921b979edb |
|---|---|
| 18 local st = require "util.stanza"; | 18 local st = require "util.stanza"; |
| 19 local parse_xml_real = require "util.xml".parse; | 19 local parse_xml_real = require "util.xml".parse; |
| 20 | 20 |
| 21 local lfs = require "lfs"; | 21 local lfs = require "lfs"; |
| 22 | 22 |
| 23 local function default_get_user_xml(self, user, host) | 23 local function default_get_user_xml(self, user, host) --luacheck: ignore 212/self |
| 24 local jid = user.."@"..host; | 24 local jid = user.."@"..host; |
| 25 local path = paths.join(prosody.paths.data, jid..".xml"); | 25 local path = paths.join(prosody.paths.data, jid..".xml"); |
| 26 local f, err = io_open(path); | 26 local f, err = io_open(path); |
| 27 if not f then | 27 if not f then |
| 28 module:log("debug", "Unable to load XML file for <%s>: %s", jid, err); | 28 module:log("debug", "Unable to load XML file for <%s>: %s", jid, err); |
