# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1476823646 -7200
# Node ID c420a38db5ef51df6cbc4f7b42e76a845bde7ed9
# Parent  74e755674e0f644f9b8f1f66314dd624cab86dad
Backed out changeset f1af4edd5722, doesn't work as intended (node is the name of the node and always present)

diff -r 74e755674e0f -r c420a38db5ef plugins/mod_pubsub/mod_pubsub.lua
--- a/plugins/mod_pubsub/mod_pubsub.lua	Tue Oct 18 15:29:23 2016 +0200
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Tue Oct 18 22:47:26 2016 +0200
@@ -126,15 +126,11 @@
 end);
 
 local admin_aff = module:get_option_string("default_admin_affiliation", "owner");
-local unowned_aff = module:get_option_string("default_unowned_affiliation");
-local function get_affiliation(jid, node)
+local function get_affiliation(jid)
 	local bare_jid = jid_bare(jid);
 	if bare_jid == module.host or usermanager.is_admin(bare_jid, module.host) then
 		return admin_aff;
 	end
-	if not node then
-		return unowned_aff;
-	end
 end
 
 function set_service(new_service)