mod_carbons/mod_carbons.lua
changeset 617 3ca933c9d8ff
parent 606 a9249614b0fe
child 618 267548522810
equal deleted inserted replaced
616:884ae37d76bf 617:3ca933c9d8ff
    42 		return -- No carbons for messages of type error or headline
    42 		return -- No carbons for messages of type error or headline
    43 	end
    43 	end
    44 
    44 
    45 	local bare_jid, user_sessions;
    45 	local bare_jid, user_sessions;
    46 	local no_carbon_to = {};
    46 	local no_carbon_to = {};
    47 	module:log("debug", "Message from %s to %s", orig_from, orig_to);
    47 	module:log("debug", "Message from %s to %s", tostring(orig_from), tostring(orig_to));
    48 	if c2s then -- Stanza sent by a local client
    48 	if c2s then -- Stanza sent by a local client
    49 		bare_jid = (origin.username.."@"..origin.host)
    49 		bare_jid = (origin.username.."@"..origin.host)
    50 		user_sessions = host_sessions[origin.username];
    50 		user_sessions = host_sessions[origin.username];
    51 	else -- Stanza about to be delivered to a local client
    51 	else -- Stanza about to be delivered to a local client
    52 		local username, hostname, resource = jid_split(orig_to);
    52 		local username, hostname, resource = jid_split(orig_to);