core/rostermanager.lua

changeset 282
80e7de32b618
parent 268
fd0607c8f179
child 519
cccd610a0ef9
--- a/core/rostermanager.lua	Wed Nov 12 21:38:46 2008 +0100
+++ b/core/rostermanager.lua	Sat Nov 15 13:47:17 2008 +0100
@@ -1,8 +1,6 @@
 
-local mainlog = log;
-local function log(type, message)
-	mainlog(type, "rostermanager", message);
-end
+
+local log = require "util.logger".init("rostermanager");
 
 local setmetatable = setmetatable;
 local format = string.format;
@@ -234,7 +232,7 @@
 		if item.subscription == "from" then
 			item.subscription = "none";
 			changed = true;
-		elseif item.subscription == both then
+		elseif item.subscription == "both" then
 			item.subscription = "to";
 			changed = true;
 		end

mercurial