# HG changeset patch # User Stephen Paul Weber # Date 1738683033 18000 # Node ID 1cf563a9462058e1b8306da20367a0bfebdc1926 # Parent c887820cd8847ae2cf8e0fdac99f479c81eda108 mod_push2: this expression was throwing away the second value And wasn't a needed guard anyway, util.jid.split(nil) is nil diff -r c887820cd884 -r 1cf563a94620 mod_push2/mod_push2.lua --- a/mod_push2/mod_push2.lua Mon Feb 03 17:04:23 2025 -0500 +++ b/mod_push2/mod_push2.lua Tue Feb 04 10:30:33 2025 -0500 @@ -509,7 +509,7 @@ stanza:tag("stanza-id", { xmlns = "urn:xmpp:sid:0", by = event.for_user.."@"..module.host, id = event.id }):up() local user_session = host_sessions[event.for_user] and host_sessions[event.for_user].sessions or {} local to = stanza.attr.to - local to_user, to_host = to and jid.split(to) + local to_user, to_host = jid.split(to) to_user = to_user or event.origin.username to_host = to_host or module.host