Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 7947:24170d74b00b
core: Split some very long lines [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 04 Mar 2017 17:49:48 +0100 |
parent | 7784:9f70d35a1602 |
child | 7949:8acc35b5355a |
comparison
equal
deleted
inserted
replaced
7945:1f4a0e0b7167 | 7947:24170d74b00b |
---|---|
74 function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end | 74 function session.data(data) log("debug", "Discarding data received from resting session: %s", tostring(data)); end |
75 return setmetatable(session, resting_session); | 75 return setmetatable(session, resting_session); |
76 end | 76 end |
77 | 77 |
78 local function destroy_session(session, err) | 78 local function destroy_session(session, err) |
79 (session.log or log)("debug", "Destroying session for %s (%s@%s)%s", session.full_jid or "(unknown)", session.username or "(unknown)", session.host or "(unknown)", err and (": "..err) or ""); | 79 (session.log or log)("debug", "Destroying session for %s (%s@%s)%s", |
80 session.full_jid or "(unknown)", session.username or "(unknown)", | |
81 session.host or "(unknown)", err and (": "..err) or ""); | |
82 | |
80 if session.destroyed then return; end | 83 if session.destroyed then return; end |
81 | 84 |
82 -- Remove session/resource from user's session list | 85 -- Remove session/resource from user's session list |
83 if session.full_jid then | 86 if session.full_jid then |
84 local host_session = hosts[session.host]; | 87 local host_session = hosts[session.host]; |