plugins/mod_storage_xep0227.lua
changeset 12179 39921b979edb
parent 12178 a38b7cb5fd6a
child 12180 e7639625a848
equal deleted inserted replaced
12178:a38b7cb5fd6a 12179: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);