Diff

util/pubsub.lua @ 5628:ba5c2f6b799e

util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas)
author Kim Alvefur <zash@zash.se>
date Sun, 26 May 2013 16:01:09 +0200
parent 5320:518d864b2ab8
child 5675:e29ece65e3b0
line wrap: on
line diff
--- a/util/pubsub.lua	Wed May 22 14:32:02 2013 +0100
+++ b/util/pubsub.lua	Sun May 26 16:01:09 2013 +0200
@@ -350,7 +350,7 @@
 			if node then -- Return only subscriptions to this node
 				if subscribed_nodes[node] then
 					ret[#ret+1] = {
-						node = subscribed_nodes[node];
+						node = node;
 						jid = jid;
 						subscription = node_obj.subscribers[jid];
 					};