projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f0e7bf
)
Fix for sessionmanager to not throw error when session doesn't have a private logger
author
Matthew Wild
<mwild1@gmail.com>
Fri, 24 Oct 2008 13:47:23 +0000
(14:47 +0100)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 24 Oct 2008 13:47:23 +0000
(14:47 +0100)
core/sessionmanager.lua
patch
|
blob
|
history
diff --git
a/core/sessionmanager.lua
b/core/sessionmanager.lua
index 2b7659d26d36b76c7f46c88924d0689e332bb8f3..a7858d9e26edd29578b894b41339c9b8cbe0ab6d 100644
(file)
--- a/
core/sessionmanager.lua
+++ b/
core/sessionmanager.lua
@@
-34,7
+34,7
@@
function new_session(conn)
end
function destroy_session(session)
-
session.log
("info", "Destroying session");
+
(session.log or log)
("info", "Destroying session");
if session.host and session.username then
if session.resource then
hosts[session.host].sessions[session.username].sessions[session.resource] = nil;