Software /
code /
prosody
Comparison
util/pubsub.lua @ 3942:0323beb7183c
util.pubsub: Use correct node name when returning a list of multiple nodes in a subscriptions response
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 22 Dec 2010 16:45:32 +0000 |
parent | 3938:a3ecaf46bd82 |
child | 3945:39e34cb4c491 |
comparison
equal
deleted
inserted
replaced
3941:526624f7852e | 3942:0323beb7183c |
---|---|
311 end | 311 end |
312 else -- Return subscriptions to all nodes | 312 else -- Return subscriptions to all nodes |
313 local nodes = self.nodes; | 313 local nodes = self.nodes; |
314 for subscribed_node in pairs(subscribed_nodes) do | 314 for subscribed_node in pairs(subscribed_nodes) do |
315 ret[#ret+1] = { | 315 ret[#ret+1] = { |
316 node = node; | 316 node = subscribed_node; |
317 jid = jid; | 317 jid = jid; |
318 subscription = nodes[subscribed_node].subscribers[jid]; | 318 subscription = nodes[subscribed_node].subscribers[jid]; |
319 }; | 319 }; |
320 end | 320 end |
321 end | 321 end |