diff options
author | Matthew Wild <mwild1@gmail.com> | 2022-01-14 17:00:13 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2022-01-14 17:00:13 +0000 |
commit | 9767804146df64fc0ce91896994616ff910fa8ee (patch) | |
tree | bd7c3e8db698067deeeffa13524e2d341b718fa1 | |
parent | 843e4ad49db8c913b42db411547c654b6af2c3e9 (diff) | |
download | prosody-9767804146df64fc0ce91896994616ff910fa8ee.tar.gz prosody-9767804146df64fc0ce91896994616ff910fa8ee.zip |
mod_storage_xep0227: Fix luacheck warnings
-rw-r--r-- | plugins/mod_storage_xep0227.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_storage_xep0227.lua b/plugins/mod_storage_xep0227.lua index 7b039f81..1676341b 100644 --- a/plugins/mod_storage_xep0227.lua +++ b/plugins/mod_storage_xep0227.lua @@ -238,7 +238,7 @@ handlers.roster = { local xml = self:_get_user_xml(user, self.host); local usere = xml and getUserElement(xml); if usere then - local user_jid = jid.join(usere.name, self.host); + local user_jid = jid_join(usere.name, self.host); usere:remove_children("query", "jabber:iq:roster"); usere:maptags(function (tag) if tag.attr.xmlns == "jabber:client" and tag.name == "presence" and tag.attr.type == "subscribe" then @@ -250,7 +250,7 @@ handlers.roster = { local roster = st.stanza("query", {xmlns='jabber:iq:roster'}); usere:add_child(roster); for contact_jid, item in pairs(data) do - contact_jid = jid.bare(jid.prep(contact_jid)); + contact_jid = jid_bare(jid_prep(contact_jid)); if contact_jid ~= false then if contact_jid ~= user_jid then -- Skip self-contacts roster:tag("item", { |