Software /
code /
prosody-modules
Changeset
1505:ba71d0ad5564
mod_message_logging/mod_message_logging.lua: Fix missing 'or'
author | daurnimator <quae@daurnimator.com> |
---|---|
date | Tue, 16 Sep 2014 17:32:45 -0400 |
parents | 1504:b8164f18142a |
children | 1506:a40f9b8661d8 |
files | mod_message_logging/mod_message_logging.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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