Comparison

plugins/mod_privacy.lua @ 2502:ec3eaf54bbd4

mod_privacy: Removed a useless 'require' within a function.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 26 Jan 2010 02:11:50 +0500
parent 2500:bffdaeb7ab5e
child 2516:68a889016a46
comparison
equal deleted inserted replaced
2501:f521e89539da 2502:ec3eaf54bbd4
86 end 86 end
87 end 87 end
88 elseif type(listnameOrItem) == "table" then 88 elseif type(listnameOrItem) == "table" then
89 module:log("debug", "got an item, check wether to send unavailable presence stanza or not"); 89 module:log("debug", "got an item, check wether to send unavailable presence stanza or not");
90 local item = listnameOrItem; 90 local item = listnameOrItem;
91 local serialize = require "util.serialization".serialize;
92
93 91
94 if item["presence-out"] == true then 92 if item["presence-out"] == true then
95 if item.type == "jid" then 93 if item.type == "jid" then
96 sendUnavailable(origin, item.value, origin.full_jid); 94 sendUnavailable(origin, item.value, origin.full_jid);
97 elseif item.type == "group" then 95 elseif item.type == "group" then