util.pubsub: Return correct node in get_subscriptions()

Wed, 22 Dec 2010 17:42:35 +0100

author
Kim Alvefur <zash@zash.se>
date
Wed, 22 Dec 2010 17:42:35 +0100
changeset 3945
39e34cb4c491
parent 3944
74a422abec11
child 3946
14239141764f

util.pubsub: Return correct node in get_subscriptions()

util/pubsub.lua file | annotate | diff | comparison | revisions
--- 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];
 					};

mercurial