Software / code / prosody
Comparison
plugins/mod_pubsub.lua @ 5569:c45997aebaa2
mod_pubsub: Remove nodeid check added in 989acb4ad1de that wasn't needed
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 09 May 2013 11:13:18 +0200 |
| parent | 5481:169772e3d4e0 |
| child | 6472:acae6289e0a6 |
comparison
equal
deleted
inserted
replaced
| 5567:c4ab25b35a55 | 5569:c45997aebaa2 |
|---|---|
| 78 return origin.send(reply); | 78 return origin.send(reply); |
| 79 end | 79 end |
| 80 | 80 |
| 81 function handlers.get_subscriptions(origin, stanza, subscriptions) | 81 function handlers.get_subscriptions(origin, stanza, subscriptions) |
| 82 local node = subscriptions.attr.node; | 82 local node = subscriptions.attr.node; |
| 83 if not node then | |
| 84 return origin.send(pubsub_error_reply(stanza, "nodeid-required")); | |
| 85 end | |
| 86 local ok, ret = service:get_subscriptions(node, stanza.attr.from, stanza.attr.from); | 83 local ok, ret = service:get_subscriptions(node, stanza.attr.from, stanza.attr.from); |
| 87 if not ok then | 84 if not ok then |
| 88 return origin.send(pubsub_error_reply(stanza, ret)); | 85 return origin.send(pubsub_error_reply(stanza, ret)); |
| 89 end | 86 end |
| 90 local reply = st.reply(stanza) | 87 local reply = st.reply(stanza) |