Comparison

plugins/mod_announce.lua @ 3276:4e44469b0583

mod_announce: Removed unused variables.
author Waqas Hussain <waqas20@gmail.com>
date Fri, 18 Jun 2010 14:20:00 +0500
parent 3275:05c1d8269043
child 3278:5ca2ed58788f
comparison
equal deleted inserted replaced
3275:05c1d8269043 3276:4e44469b0583
4 -- 4 --
5 -- This project is MIT/X11 licensed. Please see the 5 -- This project is MIT/X11 licensed. Please see the
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local st, jid, set = require "util.stanza", require "util.jid", require "util.set"; 9 local st, jid = require "util.stanza", require "util.jid";
10 10
11 local is_admin = require "core.usermanager".is_admin; 11 local is_admin = require "core.usermanager".is_admin;
12 local admins = set.new(config.get(module:get_host(), "core", "admins"));
13 12
14 function send_to_online(message, server) 13 function send_to_online(message, server)
15 local sessions; 14 local sessions;
16 if server then 15 if server then
17 sessions = { [server] = hosts[server] }; 16 sessions = { [server] = hosts[server] };