Comparison

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
comparison
equal deleted inserted replaced
2142:d6fbb57a216c 2143:7cab309a26b2
2 local jid_split = require "util.jid".split; 2 local jid_split = require "util.jid".split;
3 local jid_bare = require "util.jid".bare; 3 local jid_bare = require "util.jid".bare;
4 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; 4 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed;
5 local throttle = require "util.throttle"; 5 local throttle = require "util.throttle";
6 local gettime = require "socket".gettime; 6 local gettime = require "socket".gettime;
7
8 local sessions = prosody.full_sessions;
9 7
10 local max = module:get_option_number("unsolicited_messages_per_minute", 10); 8 local max = module:get_option_number("unsolicited_messages_per_minute", 10);
11 local multiplier = module:get_option_number("throttle_unsolicited_burst", 1); 9 local multiplier = module:get_option_number("throttle_unsolicited_burst", 1);
12 10
13 function check_subscribed(event) 11 function check_subscribed(event)