Software /
code /
prosody-modules
Comparison
mod_carbons/mod_carbons.lua @ 617:3ca933c9d8ff
mod_carbons: Make sure parameters to log() are strings.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 28 Feb 2012 14:20:43 +0100 |
parent | 606:a9249614b0fe |
child | 618:267548522810 |
comparison
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); |