plugins/mod_privacy.lua

changeset 3068
fc7c693e094a
parent 2925
692b3c6c5bd2
child 3069
c3df9053e0a9
--- a/plugins/mod_privacy.lua	Thu May 20 11:51:55 2010 +0100
+++ b/plugins/mod_privacy.lua	Fri May 21 19:19:29 2010 +0100
@@ -160,26 +160,7 @@
 			end
 		end
 		
-		if tmp.type == "group" then
-			local found = false;
-			local roster = load_roster(origin.username, origin.host);
-			for jid,item in pairs(roster) do
-				if item.groups ~= nil then
-					for group in pairs(item.groups) do
-						if group == tmp.value then
-							found = true;
-							break;
-						end
-					end
-					if found == true then
-						break;
-					end
-				end
-			end
-			if found == false then
-				return {"cancel", "item-not-found", "Specifed roster group not existing."};
-			end
-		elseif tmp.type == "subscription" then
+		if tmp.type == "subscription" then
 			if	tmp.value ~= "both" and
 				tmp.value ~= "to" and
 				tmp.value ~= "from" and

mercurial