Mercurial > prosody-modules
comparison mod_smacks/mod_smacks.lua @ 3479:9ef309fb501d
mod_smacks: apply resumed logger and type to new session, fix #1229
author | Georg Lukas <georg@op-co.de> |
---|---|
date | Wed, 06 Mar 2019 21:51:45 +0100 |
parents | f6319346e2a3 |
children | 3d4eefdd950a |
comparison
equal
deleted
inserted
replaced
3478:f6319346e2a3 | 3479:9ef309fb501d |
---|---|
520 original_session.filter.session = original_session; | 520 original_session.filter.session = original_session; |
521 original_session.filters = session.filters; | 521 original_session.filters = session.filters; |
522 original_session.stream = session.stream; | 522 original_session.stream = session.stream; |
523 original_session.secure = session.secure; | 523 original_session.secure = session.secure; |
524 original_session.hibernating = nil; | 524 original_session.hibernating = nil; |
525 session.log = original_session.log; | |
526 session.type = original_session.type; | |
525 wrap_session(original_session, true); | 527 wrap_session(original_session, true); |
526 -- Inform xmppstream of the new session (passed to its callbacks) | 528 -- Inform xmppstream of the new session (passed to its callbacks) |
527 original_session.stream:set_session(original_session); | 529 original_session.stream:set_session(original_session); |
528 -- Similar for connlisteners | 530 -- Similar for connlisteners |
529 c2s_sessions[session.conn] = original_session; | 531 c2s_sessions[session.conn] = original_session; |