# HG changeset patch # User Matthew Wild # Date 1676031227 0 # Node ID 41fbed2de4828ce1c60ca4f1d34d50aa1a4bc537 # Parent 243c156074d31177a18afaa5519e524792088081 mod_bob: Fix traceback when iq has no payload (thanks meaz) diff -r 243c156074d3 -r 41fbed2de482 mod_bob/mod_bob.lua --- 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;