Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 1998:40792c18a8e4
MUC: Ignore invisible presence (incorrectly broadcasted or forwarded by ejabberd).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 18 Oct 2009 05:54:14 +0500 |
parent | 1997:c70ee886e309 |
child | 1999:05054e360d89 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Sun Oct 18 05:37:28 2009 +0500 +++ b/plugins/muc/muc.lib.lua Sun Oct 18 05:54:14 2009 +0500 @@ -325,7 +325,9 @@ end end elseif type ~= 'result' then -- bad type - origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error? + if type ~= 'visible' and type ~= 'invisible' then -- COMPAT ejabberd can broadcast or forward XEP-0018 presences + origin.send(st.error_reply(stanza, "modify", "bad-request")); -- FIXME correct error? + end end elseif not current_nick then -- not in room if type == "error" or type == "result" then