Software /
code /
prosody-modules
Changeset
2292:54f44365a378
mod_presence_cache: Ignore stanzas to self (fixes traceback on probe to self)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 29 Aug 2016 01:06:42 +0200 (2016-08-28) |
parents | 2291:1eeda34d668b |
children | 2293:144b74caa5ef |
files | mod_presence_cache/mod_presence_cache.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;