projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78309b6
)
util.pubsub: Fix nil access error in get_subscriptions.
author
Waqas Hussain
<waqas20@gmail.com>
Fri, 25 Jan 2013 22:54:18 +0000
(
03:54
+0500)
committer
Waqas Hussain
<waqas20@gmail.com>
Fri, 25 Jan 2013 22:54:18 +0000
(
03:54
+0500)
util/pubsub.lua
patch
|
blob
|
history
diff --git
a/util/pubsub.lua
b/util/pubsub.lua
index c77140b95b1185e0aee5cd51a9575d89f2e7d887..3d97d4ed0a8e60927484c6a1208154a10afb309f 100644
(file)
--- a/
util/pubsub.lua
+++ b/
util/pubsub.lua
@@
-338,7
+338,7
@@
function service:get_subscriptions(node, actor, jid)
if node then -- Return only subscriptions to this node
if subscribed_nodes[node] then
ret[#ret+1] = {
- node = subscribed_node;
+ node = subscribed_node
s[node]
;
jid = jid;
subscription = node_obj.subscribers[jid];
};