Software /
code /
prosody
Comparison
core/stanza_router.lua @ 7802:802dc0691177
stanza_router: Fix typo
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 02 Jan 2017 01:59:03 +0100 |
parent | 7785:cdffbda59b03 |
child | 7947:24170d74b00b |
comparison
equal
deleted
inserted
replaced
7801:1aea8978d7ef | 7802:802dc0691177 |
---|---|
72 return; | 72 return; |
73 elseif not stanza.attr.id then | 73 elseif not stanza.attr.id then |
74 origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing required 'id' attribute")); | 74 origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing required 'id' attribute")); |
75 return; | 75 return; |
76 elseif (st_type == "set" or st_type == "get") and (#stanza.tags ~= 1) then | 76 elseif (st_type == "set" or st_type == "get") and (#stanza.tags ~= 1) then |
77 origin.send(st.error_reply(stanza, "modify", "bad-request", "Incorrect number of children for IQ stanz")); | 77 origin.send(st.error_reply(stanza, "modify", "bad-request", "Incorrect number of children for IQ stanza")); |
78 return; | 78 return; |
79 end | 79 end |
80 end | 80 end |
81 | 81 |
82 -- TODO also, stanzas should be returned to their original state before the function ends | 82 -- TODO also, stanzas should be returned to their original state before the function ends |