# HG changeset patch # User Emmanuel Gil Peyrot # Date 1520452047 -3600 # Node ID 3fb4f72b3dfd808cdc8f8f1d63af348f2224f47e # Parent 6e5bd5d8a5e2c66c2044878b7c72c69f3829189d mod_inject_ecaps2: Check for unset presence diff -r 6e5bd5d8a5e2 -r 3fb4f72b3dfd mod_inject_ecaps2/mod_inject_ecaps2.lua --- a/mod_inject_ecaps2/mod_inject_ecaps2.lua Wed Mar 07 20:17:56 2018 +0100 +++ b/mod_inject_ecaps2/mod_inject_ecaps2.lua Wed Mar 07 20:47:27 2018 +0100 @@ -62,7 +62,7 @@ local function caps_handler(event) local origin = event.origin; - if origin.presence:get_child("c", "urn:xmpp:caps") then + if origin.presence == nil or origin.presence:get_child("c", "urn:xmpp:caps") then return; end