Fix for never checking if the first module for a host is already loaded (affects...
[prosody.git] / core / rostermanager.lua
index 235f2aee4e4abc2a1a505917f6406cde091b70cd..7236a006fc0033f09efb36d9a34783d141c7ae69 100644 (file)
@@ -1,3 +1,12 @@
+-- Prosody IM v0.3
+-- Copyright (C) 2008-2009 Matthew Wild
+-- Copyright (C) 2008-2009 Waqas Hussain
+-- 
+-- This project is MIT/X11 licensed. Please see the
+-- COPYING file in the source package for more information.
+--
+
+
 
 
 local log = require "util.logger".init("rostermanager");
@@ -232,7 +241,7 @@ function unsubscribed(username, host, jid)
                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