mod_throttle_presence: Use local buffer variable, fixes a traceback (thanks Ge0rG)
--- 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;