plugins/mod_presence.lua

changeset 2532
b1b1b4a7db26
parent 2531
697ff4f98033
child 2592
3af266f7037f
--- a/plugins/mod_presence.lua	Fri Jan 29 21:06:51 2010 +0500
+++ b/plugins/mod_presence.lua	Fri Jan 29 21:08:18 2010 +0500
@@ -76,6 +76,7 @@
 		end
 	end
 	if stanza.attr.type == nil and not origin.presence then -- initial presence
+		origin.presence = stanza; -- FIXME repeated later
 		local probe = st.presence({from = origin.full_jid, type = "probe"});
 		for jid, item in pairs(roster) do -- probe all contacts we are subscribed to
 			if item.subscription == "both" or item.subscription == "to" then

mercurial