# HG changeset patch # User Waqas Hussain # Date 1266189337 -18000 # Node ID b5924a017849e506d12539e74d03d1a9c424bc02 # Parent dae09dd45bedb318cb546b560f493e85c210e4e2 mod_presence: Reflect the user's own presence back to them. diff -r dae09dd45bed -r b5924a017849 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Sun Feb 14 20:37:49 2010 +0000 +++ 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];