Diff

mod_throttle_unsolicited/mod_throttle_unsolicited.lua @ 2143:7cab309a26b2

mod_throttle_unsolicited: Remove unused local [luacheck]
author Kim Alvefur <zash@zash.se>
date Wed, 30 Mar 2016 11:12:01 +0200
parent 2142:d6fbb57a216c
child 2324:1424aa8877f0
line wrap: on
line diff
--- a/mod_throttle_unsolicited/mod_throttle_unsolicited.lua	Wed Mar 30 10:54:47 2016 +0200
+++ b/mod_throttle_unsolicited/mod_throttle_unsolicited.lua	Wed Mar 30 11:12:01 2016 +0200
@@ -5,8 +5,6 @@
 local throttle = require "util.throttle";
 local gettime = require "socket".gettime;
 
-local sessions = prosody.full_sessions;
-
 local max = module:get_option_number("unsolicited_messages_per_minute", 10);
 local multiplier = module:get_option_number("throttle_unsolicited_burst", 1);