--- 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