Software /
code /
prosody
Comparison
plugins/mod_disco.lua @ 8003:15973ade9a11
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2017 00:28:18 +0100 |
parent | 7977:01d6298de991 |
parent | 8002:57060d0cee4b |
child | 8041:3b2cc22e9b5b |
comparison
equal
deleted
inserted
replaced
8000:42dd766cfe97 | 8003:15973ade9a11 |
---|---|
110 origin.send(st.error_reply(stanza, "cancel", "item-not-found", "Node does not exist")); | 110 origin.send(st.error_reply(stanza, "cancel", "item-not-found", "Node does not exist")); |
111 end | 111 end |
112 return true; | 112 return true; |
113 end | 113 end |
114 local reply_query = get_server_disco_info(); | 114 local reply_query = get_server_disco_info(); |
115 reply_query.node = node; | 115 reply_query.attr.node = node; |
116 local reply = st.reply(stanza):add_child(reply_query); | 116 local reply = st.reply(stanza):add_child(reply_query); |
117 origin.send(reply); | 117 origin.send(reply); |
118 return true; | 118 return true; |
119 end); | 119 end); |
120 module:hook("iq/host/http://jabber.org/protocol/disco#items:query", function(event) | 120 module:hook("iq/host/http://jabber.org/protocol/disco#items:query", function(event) |