comparison mod_sms_clickatell/mod_sms_clickatell.lua @ 3353:e8d6f602f382

mod_password_reset: Improve error reporting when setting a password fails
author Matthew Wild <mwild1@gmail.com>
date Tue, 09 Oct 2018 14:10:42 +0100
parents 65082d91950e
children
comparison
equal deleted inserted replaced
3352:f7668aee968a 3353:e8d6f602f382
232 end 232 end
233 233
234 function iq_success(origin, stanza) 234 function iq_success(origin, stanza)
235 local reply = data_cache.success; 235 local reply = data_cache.success;
236 if reply == nil then 236 if reply == nil then
237 reply = st.iq({type='result', from=stanza.attr.to or component_host}); 237 reply = st.reply(stanza);
238 data_cache.success = reply; 238 data_cache.success = reply;
239 end 239 end
240 reply.attr.id = stanza.attr.id; 240 reply.attr.id = stanza.attr.id;
241 reply.attr.to = stanza.attr.from; 241 reply.attr.to = stanza.attr.from;
242 origin.send(reply); 242 origin.send(reply);