# HG changeset patch # User Waqas Hussain # Date 1355537334 -18000 # Node ID 4516e6bd51b4288f9c369fd1ff04bba0369e5ea3 # Parent 864b27ddaa1024e64748fed5b4bca537bea9216c MUC: Support invite messages when stanza type is explicitly set to "normal" or to an unknown value. diff -r 864b27ddaa10 -r 4516e6bd51b4 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Sat Dec 15 07:06:45 2012 +0500 +++ b/plugins/muc/muc.lib.lua Sat Dec 15 07:08:54 2012 +0500 @@ -914,8 +914,8 @@ elseif type ~= "error" and type ~= "result" then origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); end - elseif stanza.name == "message" and not stanza.attr.type and #stanza.tags == 1 and self._jid_nick[stanza.attr.from] - and stanza.tags[1].name == "x" and stanza.tags[1].attr.xmlns == "http://jabber.org/protocol/muc#user" then + elseif stanza.name == "message" and not(type == "chat" or type == "error" or type == "groupchat" or type == "headline") and #stanza.tags == 1 + and self._jid_nick[stanza.attr.from] and stanza.tags[1].name == "x" and stanza.tags[1].attr.xmlns == "http://jabber.org/protocol/muc#user" then local x = stanza.tags[1]; local payload = (#x.tags == 1 and x.tags[1]); if payload and payload.name == "invite" and payload.attr.to then