# HG changeset patch # User Kim Alvefur # Date 1408301639 -7200 # Node ID 95f10fb7f60e1a119179b005b27b18478d62c4e3 # Parent ba97f9be4f76f889938a59e467d8635dfba130d6 mod_throttle_presence: Use local buffer variable, fixes a traceback (thanks Ge0rG) diff -r ba97f9be4f76 -r 95f10fb7f60e mod_throttle_presence/mod_throttle_presence.lua --- a/mod_throttle_presence/mod_throttle_presence.lua Sun Aug 17 20:21:09 2014 +0200 +++ b/mod_throttle_presence/mod_throttle_presence.lua Sun Aug 17 20:53:59 2014 +0200 @@ -15,7 +15,7 @@ end else module:log("debug", "Buffering presence stanza from %s to %s", stanza.attr.from, session.full_jid); - session.buffer[stanza.attr.from] = st.clone(stanza); + buffer[stanza.attr.from] = st.clone(stanza); return nil; -- Drop this stanza (we've stored it for later) end return stanza;