# HG changeset patch # User Matthew Wild # Date 1343123077 -3600 # Node ID d5a3c5c1873cefb0e956c898d7e07c8b3a2df22b # Parent f6c1f98419be37bdd3534318f9c2cc0b92964292 mod_muc: Fix a couple of cases of 'forbidden' stanza error being sent with type 'cancel' - fixes #303 diff -r f6c1f98419be -r d5a3c5c1873c plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Mon Jul 23 23:05:32 2012 +0200 +++ b/plugins/muc/muc.lib.lua Tue Jul 24 10:44:37 2012 +0100 @@ -856,7 +856,7 @@ if not occupant then -- not in room origin.send(st.error_reply(stanza, "cancel", "not-acceptable")); elseif occupant.role == "visitor" then - origin.send(st.error_reply(stanza, "cancel", "forbidden")); + origin.send(st.error_reply(stanza, "auth", "forbidden")); else local from = stanza.attr.from; stanza.attr.from = current_nick; @@ -867,7 +867,7 @@ self:set_subject(current_nick, subject); -- TODO use broadcast_message_stanza else stanza.attr.from = from; - origin.send(st.error_reply(stanza, "cancel", "forbidden")); + origin.send(st.error_reply(stanza, "auth", "forbidden")); end else self:broadcast_message(stanza, self:get_historylength() > 0);