Software /
code /
prosody-modules
Diff
mod_mam_muc/mod_mam_muc.lua @ 1865:db8b256f51ff
mod_admin_web,mod_carbons,mod_csi_compat,mod_mam_muc,mod_tcpproxy: Explicitly return true
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 21 Sep 2015 20:03:08 +0200 |
parent | 1691:1a8c791d365f |
child | 1973:9329a11c03a6 |
line wrap: on
line diff
--- a/mod_mam_muc/mod_mam_muc.lua Sat Sep 19 16:51:16 2015 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Mon Sep 21 20:03:08 2015 +0200 @@ -153,7 +153,8 @@ local room_obj = get_room_from_jid(room); if not room_obj then - return origin.send(st.error_reply(stanza, "cancel", "item-not-found")) + origin.send(st.error_reply(stanza, "cancel", "item-not-found")) + return true; end local from = jid_bare(orig_from); @@ -161,7 +162,8 @@ local from_affiliation = room_obj:get_affiliation(from); if from_affiliation == "outcast" -- banned or room_obj:get_members_only() and not from_affiliation then -- members-only, not a member - return origin.send(st.error_reply(stanza, "auth", "forbidden")) + origin.send(st.error_reply(stanza, "auth", "forbidden")) + return true; end local qid = query.attr.queryid; @@ -207,7 +209,8 @@ }); if not data then - return origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); + origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); + return true; end local total = err;