Diff

util/pubsub.lua @ 5776:bd0ff8ae98a8

Remove all trailing whitespace
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 09 Aug 2013 17:48:21 +0200
parent 5675:e29ece65e3b0
child 5851:cdcfd93e2f43
child 5971:637731f0b9a3
line wrap: on
line diff
--- a/util/pubsub.lua	Fri Aug 09 16:03:48 2013 +0200
+++ b/util/pubsub.lua	Fri Aug 09 17:48:21 2013 +0200
@@ -29,13 +29,13 @@
 
 function service:may(node, actor, action)
 	if actor == true then return true; end
-	
+
 	local node_obj = self.nodes[node];
 	local node_aff = node_obj and node_obj.affiliations[actor];
 	local service_aff = self.affiliations[actor]
 	                 or self.config.get_affiliation(actor, node, action)
 	                 or "none";
-	
+
 	-- Check if node allows/forbids it
 	local node_capabilities = node_obj and node_obj.capabilities;
 	if node_capabilities then
@@ -47,7 +47,7 @@
 			end
 		end
 	end
-	
+
 	-- Check service-wide capabilities instead
 	local service_capabilities = self.config.capabilities;
 	local caps = service_capabilities[node_aff or service_aff];
@@ -57,7 +57,7 @@
 			return can;
 		end
 	end
-	
+
 	return false;
 end
 
@@ -211,7 +211,7 @@
 	if self.nodes[node] then
 		return false, "conflict";
 	end
-	
+
 	self.nodes[node] = {
 		name = node;
 		subscribers = {};