Comparison

plugins/mod_smacks.lua @ 12041:def20683c161

mod_smacks: Update reference to session from send() a86ae74da96c caused the stanza queue to double on resumption because session.send() keeps a reference to the session which is what gets passed to filters, so the added flag was not seen in the filter.
author Kim Alvefur <zash@zash.se>
date Mon, 13 Dec 2021 19:48:42 +0100
parent 12038:4e54334febc1
child 12042:fe643b3a41f2
comparison
equal deleted inserted replaced
12040:337b489532b7 12041:def20683c161
570 end 570 end
571 local migrated_session_log = session.log; 571 local migrated_session_log = session.log;
572 original_session.ip = session.ip; 572 original_session.ip = session.ip;
573 original_session.conn = session.conn; 573 original_session.conn = session.conn;
574 original_session.send = session.send; 574 original_session.send = session.send;
575 original_session.send.session = original_session;
575 original_session.close = session.close; 576 original_session.close = session.close;
576 original_session.filter = session.filter; 577 original_session.filter = session.filter;
577 original_session.filter.session = original_session; 578 original_session.filter.session = original_session;
578 original_session.filters = session.filters; 579 original_session.filters = session.filters;
579 original_session.stream = session.stream; 580 original_session.stream = session.stream;