# HG changeset patch # User Kim Alvefur # Date 1472425602 -7200 # Node ID 54f44365a3787de1618cd029a2c598b4be3e4223 # Parent 1eeda34d668b0bb5d5f41452fd5e1dca47ede29a mod_presence_cache: Ignore stanzas to self (fixes traceback on probe to self) diff -r 1eeda34d668b -r 54f44365a378 mod_presence_cache/mod_presence_cache.lua --- a/mod_presence_cache/mod_presence_cache.lua Wed Aug 24 00:36:54 2016 +0200 +++ b/mod_presence_cache/mod_presence_cache.lua Mon Aug 29 01:06:42 2016 +0200 @@ -79,6 +79,7 @@ local username = origin.username; local contact_bare = stanza.attr.to; + if not contact_bare then return; end -- probe to self local bare_cache_key = username .. "\0" .. contact_bare;