sessionmanager: Rename filters_initialize->initialize_filters
[prosody.git] / core / offlinemanager.lua
index 283de5e39c2df641f79952e71b5c32e418d38a25..97781e829386ac6989ba0875a621b85a198132b7 100644 (file)
@@ -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.
+--
+
+
 \r
 local datamanager = require "util.datamanager";\r
 local st = require "util.stanza";\r
@@ -16,7 +25,7 @@ function load(node, host)
        local data = datamanager.list_load(node, host, "offline");\r
        if not data then return; end\r
        for k, v in ipairs(data) do\r
-               stanza = st.deserialize(v);\r
+               local stanza = st.deserialize(v);\r
                stanza:tag("delay", {xmlns = "urn:xmpp:delay", from = host, stamp = stanza.attr.stamp}):up(); -- XEP-0203\r
                stanza:tag("x", {xmlns = "jabber:x:delay", from = host, stamp = stanza.attr.stamp_legacy}):up(); -- XEP-0091 (deprecated)\r
                stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil;\r