mod_message_logging/mod_message_logging.lua
changeset 1505 ba71d0ad5564
parent 1501 4b55110b0aa8
child 1593 3e4d15ae2133
--- a/mod_message_logging/mod_message_logging.lua	Tue Sep 16 16:44:32 2014 +0200
+++ b/mod_message_logging/mod_message_logging.lua	Tue Sep 16 17:32:45 2014 -0400
@@ -67,7 +67,7 @@
 
 	local from, to = jid_bare(stanza.attr.from), jid_bare(stanza.attr.to or stanza.attr.from);
 	if message_type == "groupchat" then
-		from = from.." <"..select(3, jid_split(stanza.attr.from))..">";
+		from = from.." <"..(select(3, jid_split(stanza.attr.from)) or "")..">";
 	end
 	write_to_log(to, from, "RECV", stanza:get_child_text("body"));
 end