Software /
code /
prosody
Diff
util/pubsub.lua @ 5315:abf1a926d0da
util.pubsub: Fix nil access error in get_subscriptions.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 26 Jan 2013 03:54:18 +0500 |
parent | 5312:fdcd2ac7c22d |
child | 5320:518d864b2ab8 |
line wrap: on
line diff
--- a/util/pubsub.lua Sat Jan 26 03:50:13 2013 +0500 +++ b/util/pubsub.lua Sat Jan 26 03:54:18 2013 +0500 @@ -338,7 +338,7 @@ if node then -- Return only subscriptions to this node if subscribed_nodes[node] then ret[#ret+1] = { - node = subscribed_node; + node = subscribed_nodes[node]; jid = jid; subscription = node_obj.subscribers[jid]; };