# HG changeset patch # User Waqas Hussain # Date 1266189337 -18000 # Node ID 21eb99b06f4dc18659e9af3adf4ae8a86f02bd8e # Parent 333d7e2033b21e1eaf2faa8e35f009ddbbd11258 mod_presence: Reflect the user's own presence back to them. diff -r 333d7e2033b2 -r 21eb99b06f4d plugins/mod_presence.lua --- a/plugins/mod_presence.lua Mon Feb 15 02:51:07 2010 +0500 +++ b/plugins/mod_presence.lua Mon Feb 15 04:15:37 2010 +0500 @@ -63,6 +63,9 @@ end function handle_normal_presence(origin, stanza, core_route_stanza) + if full_sessions[origin.full_jid] then -- if user is still connected + origin.send(stanza); -- reflect their presence back to them + end local roster = origin.roster; local node, host = origin.username, origin.host; local user = bare_sessions[node.."@"..host];