comparison mod_smacks/mod_smacks.lua @ 755:bab7c4ace803

mod_smacks: Fix log statement
author Kim Alvefur <zash@zash.se>
date Sun, 29 Jul 2012 22:11:48 +0200
parents 713c6791fbcc
children ceea444983c0
comparison
equal deleted inserted replaced
754:713c6791fbcc 755:bab7c4ace803
296 local queue = original_session.outgoing_stanza_queue; 296 local queue = original_session.outgoing_stanza_queue;
297 for i=1,#queue do 297 for i=1,#queue do
298 session.send(queue[i]); 298 session.send(queue[i]);
299 end 299 end
300 else 300 else
301 log("warn", "Client %s@%s[%s] tried to resume stream for %s@%s[%s]", 301 module:log("warn", "Client %s@%s[%s] tried to resume stream for %s@%s[%s]",
302 session.username or "?", session.host or "?", session.type, 302 session.username or "?", session.host or "?", session.type,
303 original_session.username or "?", original_session.host or "?", original_session.type); 303 original_session.username or "?", original_session.host or "?", original_session.type);
304 session.send(st.stanza("failed", sm_attr) 304 session.send(st.stanza("failed", sm_attr)
305 :tag("not-authorized", { xmlns = xmlns_errors })); 305 :tag("not-authorized", { xmlns = xmlns_errors }));
306 end 306 end