comparison mod_smacks/mod_smacks.lua @ 587:322a14acd974

mod_smacks: Add log message on resume
author Matthew Wild <mwild1@gmail.com>
date Mon, 30 Jan 2012 04:15:58 +0000
parents f733e7599ed6
children 8042558336b6
comparison
equal deleted inserted replaced
586:f733e7599ed6 587:322a14acd974
220 session.send(st.stanza("failed", sm_attr) 220 session.send(st.stanza("failed", sm_attr)
221 :tag("item-not-found", { xmlns = xmlns_errors }) 221 :tag("item-not-found", { xmlns = xmlns_errors })
222 ); 222 );
223 elseif session.username == original_session.username 223 elseif session.username == original_session.username
224 and session.host == original_session.host then 224 and session.host == original_session.host then
225 session.log("debug", "mod_smacks resuming existing session...");
225 -- TODO: All this should move to sessionmanager (e.g. session:replace(new_session)) 226 -- TODO: All this should move to sessionmanager (e.g. session:replace(new_session))
226 original_session.ip = session.ip; 227 original_session.ip = session.ip;
227 original_session.conn = session.conn; 228 original_session.conn = session.conn;
228 original_session.send = session.send; 229 original_session.send = session.send;
229 original_session.stream = session.stream; 230 original_session.stream = session.stream;