Mercurial > prosody-modules
diff mod_presence_cache/mod_presence_cache.lua @ 2145:f965f86a5cad
mod_presence_cache: Check stanzas only from s2sin (not needed, even with mod_bidi)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 Apr 2016 15:11:25 +0200 |
parents | d843e8f1ed78 |
children | 39d958f4a0c3 |
line wrap: on
line diff
--- a/mod_presence_cache/mod_presence_cache.lua Thu Mar 31 14:48:30 2016 +0200 +++ b/mod_presence_cache/mod_presence_cache.lua Fri Apr 01 15:11:25 2016 +0200 @@ -12,7 +12,7 @@ local origin, stanza = event.origin, event.stanza; local typ = stanza.attr.type; module:log("debug", "Cache hook, got %s from a %s", stanza:top_tag(), origin.type); - if origin.type:match"^s2s" and ( typ == nil or typ == "unavailable" ) then + if origin.type == "s2sin" and ( typ == nil or typ == "unavailable" ) then local from_jid = stanza.attr.from; local from_bare = jid_bare(from_jid); local username = jid_split(stanza.attr.to);