aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/offlinemanager.lua2
-rw-r--r--core/rostermanager.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/offlinemanager.lua b/core/offlinemanager.lua
index 283de5e3..e71da446 100644
--- a/core/offlinemanager.lua
+++ b/core/offlinemanager.lua
@@ -16,7 +16,7 @@ function load(node, host)
local data = datamanager.list_load(node, host, "offline");
if not data then return; end
for k, v in ipairs(data) do
- stanza = st.deserialize(v);
+ local stanza = st.deserialize(v);
stanza:tag("delay", {xmlns = "urn:xmpp:delay", from = host, stamp = stanza.attr.stamp}):up(); -- XEP-0203
stanza:tag("x", {xmlns = "jabber:x:delay", from = host, stamp = stanza.attr.stamp_legacy}):up(); -- XEP-0091 (deprecated)
stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil;
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
index 235f2aee..a08f989d 100644
--- a/core/rostermanager.lua
+++ b/core/rostermanager.lua
@@ -232,7 +232,7 @@ function unsubscribed(username, host, jid)
if item.subscription == "from" then
item.subscription = "none";
changed = true;
- elseif item.subscription == both then
+ elseif item.subscription == "both" then
item.subscription = "to";
changed = true;
end