Software /
code /
prosody-modules
Changeset
5163:41fbed2de482
mod_bob: Fix traceback when iq has no payload (thanks meaz)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 10 Feb 2023 12:13:47 +0000 |
parents | 5162:243c156074d3 |
children | 5164:e6d623bd548e |
files | mod_bob/mod_bob.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_bob/mod_bob.lua Mon Jan 30 15:07:31 2023 +0000 +++ b/mod_bob/mod_bob.lua Fri Feb 10 12:13:47 2023 +0000 @@ -122,7 +122,7 @@ local function iq_handler(event) local stanza, origin = event.stanza, event.origin; local tag = stanza.tags[1]; - if tag.name ~= "data" or tag.attr.xmlns ~= "urn:xmpp:bob" then + if not tag or tag.name ~= "data" or tag.attr.xmlns ~= "urn:xmpp:bob" then return nil; end local log = origin.log or module._log;