diff mod_throttle_presence/mod_throttle_presence.lua @ 1489:95f10fb7f60e

mod_throttle_presence: Use local buffer variable, fixes a traceback (thanks Ge0rG)
author Kim Alvefur <zash@zash.se>
date Sun, 17 Aug 2014 20:53:59 +0200
parents ba97f9be4f76
children b8164f18142a
line wrap: on
line diff
--- 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;