comparison core/rostermanager.lua @ 282:80e7de32b618

Merging my new SASL code with Waqas' adjusted saslauth module.
author Tobias Markmann <tm@ayena.de>
date Sat, 15 Nov 2008 13:47:17 +0100
parents fd0607c8f179
children cccd610a0ef9
comparison
equal deleted inserted replaced
280:516f4c901991 282:80e7de32b618
1 1
2 local mainlog = log; 2
3 local function log(type, message) 3 local log = require "util.logger".init("rostermanager");
4 mainlog(type, "rostermanager", message);
5 end
6 4
7 local setmetatable = setmetatable; 5 local setmetatable = setmetatable;
8 local format = string.format; 6 local format = string.format;
9 local loadfile, setfenv, pcall = loadfile, setfenv, pcall; 7 local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
10 local pairs, ipairs = pairs, ipairs; 8 local pairs, ipairs = pairs, ipairs;
232 end 230 end
233 if item then 231 if item then
234 if item.subscription == "from" then 232 if item.subscription == "from" then
235 item.subscription = "none"; 233 item.subscription = "none";
236 changed = true; 234 changed = true;
237 elseif item.subscription == both then 235 elseif item.subscription == "both" then
238 item.subscription = "to"; 236 item.subscription = "to";
239 changed = true; 237 changed = true;
240 end 238 end
241 end 239 end
242 if changed then 240 if changed then