# HG changeset patch # User Emmanuel Gil Peyrot # Date 1541353086 -3600 # Node ID 76fc915647ab9c336aada94a920f3aeaab04dd16 # Parent a83eed629d4b9f855e7b7057279bcf431bb76dca mod_bob: Don’t try to access XHTML-IM when it isn’t present. diff -r a83eed629d4b -r 76fc915647ab mod_bob/mod_bob.lua --- a/mod_bob/mod_bob.lua Mon Oct 29 01:33:14 2018 +0100 +++ b/mod_bob/mod_bob.lua Sun Nov 04 18:38:06 2018 +0100 @@ -87,6 +87,9 @@ -- Find and query all of the cids not already cached. local tag = stanza:get_child("html", "http://jabber.org/protocol/xhtml-im"); + if not tag then + return; + end for body in tag:childtags("body", "http://www.w3.org/1999/xhtml") do find_images(body, jid, room_jid, log); end