diff mod_block_strangers/mod_block_strangers.lua @ 1325:b21236b6b8d8

Backed out changeset 853a382c9bd6
author Kim Alvefur <zash@zash.se>
date Fri, 28 Feb 2014 15:37:55 +0100
parents 853a382c9bd6
children 252b634b065d
line wrap: on
line diff
--- a/mod_block_strangers/mod_block_strangers.lua	Fri Feb 28 15:36:06 2014 +0100
+++ b/mod_block_strangers/mod_block_strangers.lua	Fri Feb 28 15:37:55 2014 +0100
@@ -2,7 +2,6 @@
 local jid_split = require "util.jid".split;
 local jid_bare = require "util.jid".bare;
 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed;
-local error_reply = require "util.stanza".error_reply;
 
 function check_subscribed(event)
 	local stanza = event.stanza;
@@ -12,7 +11,7 @@
 		if to_resource and stanza.attr.type == "groupchat" then
 			return nil; -- Pass through
 		end
-		return error_reply("auth", "forbidden", "Subscription required"); -- Bounce with error
+		return true; -- Drop stanza
 	end
 end