Mercurial > prosody-modules
comparison mod_mam_muc/mod_mam_muc.lua @ 2501:04064f01df0e
mod_mam_muc: Make sure that the total, if it is a total, is a number
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 14 Feb 2017 09:51:59 +0100 |
| parents | ec046f915506 |
| children | f576ac1cad65 |
comparison
equal
deleted
inserted
replaced
| 2500:ec046f915506 | 2501:04064f01df0e |
|---|---|
| 215 | 215 |
| 216 if not data then | 216 if not data then |
| 217 origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); | 217 origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); |
| 218 return true; | 218 return true; |
| 219 end | 219 end |
| 220 local total = err; | 220 local total = tonumber(err); |
| 221 | 221 |
| 222 origin.send(st.reply(stanza)) | 222 origin.send(st.reply(stanza)) |
| 223 local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to }; | 223 local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to }; |
| 224 | 224 |
| 225 local results = {}; | 225 local results = {}; |
