# HG changeset patch # User Kim Alvefur # Date 1479196863 -3600 # Node ID 231d47e61c813191e3015be32452464e05a34a4f # Parent 97e63e8f0f3289d754b48c65e01ee73db037b602 mod_throttle_unsolicited: Use existing local reference to origin diff -r 97e63e8f0f32 -r 231d47e61c81 mod_throttle_unsolicited/mod_throttle_unsolicited.lua --- a/mod_throttle_unsolicited/mod_throttle_unsolicited.lua Tue Nov 15 11:52:39 2016 +0000 +++ b/mod_throttle_unsolicited/mod_throttle_unsolicited.lua Tue Nov 15 09:01:03 2016 +0100 @@ -42,8 +42,8 @@ log("debug", "%s is not subscribed to %s@%s", from_jid, to_user, to_host); if not lim:poll(1) then log("warn", "Sent too many messages to non-contacts, bouncing message"); - event.origin.firewall_mark_throttle_unsolicited = gettime(); - event.origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); + origin.firewall_mark_throttle_unsolicited = gettime(); + origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); return true; end end