Diff

plugins/mod_privacy.lua @ 3301:772fb30b28fb

Merge 0.7->trunk
author Matthew Wild <mwild1@gmail.com>
date Tue, 29 Jun 2010 20:17:21 +0100
parent 3221:01da55cffcfb
parent 3300:b651f8290e27
child 3314:4019ad5c61e2
line wrap: on
line diff
--- a/plugins/mod_privacy.lua	Tue Jun 29 19:18:07 2010 +0100
+++ b/plugins/mod_privacy.lua	Tue Jun 29 20:17:21 2010 +0100
@@ -301,7 +301,7 @@
 	local origin, stanza = e.origin, e.stanza;
 	local privacy_lists = datamanager.load(session.username, session.host, "privacy") or {};
 	local bare_jid = session.username.."@"..session.host;
-	local to = stanza.attr.to;
+	local to = stanza.attr.to or bare_jid;
 	local from = stanza.attr.from;
 	
 	local is_to_user = bare_jid == jid_bare(to);