util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas)
authorKim Alvefur <zash@zash.se>
Sun, 26 May 2013 16:01:09 +0200
changeset 5628 ba5c2f6b799e
parent 5621 63cfd59999b6
child 5629 2427c81da16c
child 5630 5f3c0b11aa88
util.pubsub: Fix get_subscriptions to not pass a boolean as node name (thanks jonas)
util/pubsub.lua
--- 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];
 					};