Changeset

3945:39e34cb4c491

util.pubsub: Return correct node in get_subscriptions()
author Kim Alvefur <zash@zash.se>
date Wed, 22 Dec 2010 17:42:35 +0100
parents 3944:74a422abec11
children 3946:14239141764f
files util/pubsub.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/util/pubsub.lua	Wed Dec 22 16:53:38 2010 +0000
+++ b/util/pubsub.lua	Wed Dec 22 17:42:35 2010 +0100
@@ -304,7 +304,7 @@
 			if node then -- Return only subscriptions to this node
 				if subscribed_nodes[node] then
 					ret[#ret+1] = {
-						node = node;
+						node = subscribed_node;
 						jid = jid;
 						subscription = node_obj.subscribers[jid];
 					};