Software /
code /
prosody-modules
Changeset
6218:277db84b0c95
mod_push2: guard against no rooms tracked on this session
author | Stephen Paul Weber <singpolyma@singpolyma.net> |
---|---|
date | Tue, 25 Mar 2025 20:43:51 -0500 |
parents | 6217:8ecd53452af8 |
children | 6219:06621ab30be0 |
files | mod_push2/mod_push2.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_push2/mod_push2.lua Tue Mar 25 15:20:35 2025 -0500 +++ b/mod_push2/mod_push2.lua Tue Mar 25 20:43:51 2025 -0500 @@ -393,7 +393,7 @@ if does_match and chat then does_match = false - local nick = session.rooms_joined[jid.bare(stanza.attr.from)] or to_user + local nick = (session.rooms_joined and session.rooms_joined[jid.bare(stanza.attr.from)]) or to_user if not does_match and chat.mention then local body = stanza:get_child_text("body")