Changeset

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
parents 616:884ae37d76bf
children 618:267548522810
files mod_carbons/mod_carbons.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_carbons/mod_carbons.lua	Fri Feb 24 15:38:14 2012 +0100
+++ b/mod_carbons/mod_carbons.lua	Tue Feb 28 14:20:43 2012 +0100
@@ -44,7 +44,7 @@
 
 	local bare_jid, user_sessions;
 	local no_carbon_to = {};
-	module:log("debug", "Message from %s to %s", orig_from, orig_to);
+	module:log("debug", "Message from %s to %s", tostring(orig_from), tostring(orig_to));
 	if c2s then -- Stanza sent by a local client
 		bare_jid = (origin.username.."@"..origin.host)
 		user_sessions = host_sessions[origin.username];