diff options
author | Kim Alvefur <zash@zash.se> | 2016-12-14 01:47:19 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-12-14 01:47:19 +0100 |
commit | 91d5ac9714bfd90120cbb3ce3bf1f378be0dd75c (patch) | |
tree | 7d28b4edd259140fcdf70663b3a4bf06f5a6c7f2 /core/sessionmanager.lua | |
parent | 10a290e111c447b2062e103397058ce6ca8c7cfc (diff) | |
parent | 6e0fc36aff25f393c4f338f8c66dfd300b109e6f (diff) | |
download | prosody-91d5ac9714bfd90120cbb3ce3bf1f378be0dd75c.tar.gz prosody-91d5ac9714bfd90120cbb3ce3bf1f378be0dd75c.zip |
Merge 0.10->trunk
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r-- | core/sessionmanager.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 6aa0a4f0..3224a84d 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -109,7 +109,7 @@ local function make_authenticated(session, username) if not username or #username == 0 then return nil, "Invalid username"; end session.username = username; if session.type == "c2s_unauthed" then - session.type = "c2s"; + session.type = "c2s_unbound"; end session.log("info", "Authenticated as %s@%s", username or "(unknown)", session.host or "(unknown)"); return true; @@ -177,6 +177,9 @@ local function bind_resource(session, resource) session.full_jid = session.username .. '@' .. session.host .. '/' .. resource; hosts[session.host].sessions[session.username].sessions[resource] = session; full_sessions[session.full_jid] = session; + if session.type == "c2s_unbound" then + session.type = "c2s"; + end local err; session.roster, err = rm_load_roster(session.username, session.host); |