X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=core%2Fofflinemanager.lua;h=97781e829386ac6989ba0875a621b85a198132b7;hb=ff53626e693ddb540f718f4ff7d7e9d63a3eca08;hp=283de5e39c2df641f79952e71b5c32e418d38a25;hpb=374489d0bcba35bf59bf626c40b4ac094db6122c;p=prosody.git diff --git a/core/offlinemanager.lua b/core/offlinemanager.lua index 283de5e3..97781e82 100644 --- a/core/offlinemanager.lua +++ b/core/offlinemanager.lua @@ -1,3 +1,12 @@ +-- Prosody IM +-- Copyright (C) 2008-2010 Matthew Wild +-- Copyright (C) 2008-2010 Waqas Hussain +-- +-- This project is MIT/X11 licensed. Please see the +-- COPYING file in the source package for more information. +-- + + local datamanager = require "util.datamanager"; local st = require "util.stanza"; @@ -16,7 +25,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;