# HG changeset patch # User Kim Alvefur # Date 1442871945 -7200 # Node ID 34468d3bfcaca21f08e6f2afe2c2ce9fca1b1084 # Parent 58d96960ba8bc768e77e64c7047ada214575b52f mod_throttle_presence: Skip past things that are not stanza objects diff -r 58d96960ba8b -r 34468d3bfcac mod_throttle_presence/mod_throttle_presence.lua --- a/mod_throttle_presence/mod_throttle_presence.lua Mon Sep 21 23:44:55 2015 +0200 +++ b/mod_throttle_presence/mod_throttle_presence.lua Mon Sep 21 23:45:45 2015 +0200 @@ -4,6 +4,9 @@ module:depends("csi"); local function presence_filter(stanza, session) + if getmetatable(stanza) ~= st.stanza_mt then + return stanza; -- Things we don't want to touch + end if stanza._flush then stanza._flush = nil; return stanza;