aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-25 03:23:31 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-25 03:23:31 +0500
commitc0f6d946e15e28b820fd7c0f301719c4c4425383 (patch)
treec4d4d1a371bb2e21b400078fa91712c9b031881d /plugins
parent8ab6d1e46448dc2991e764ffa6b88ef5c55cacd6 (diff)
downloadprosody-c0f6d946e15e28b820fd7c0f301719c4c4425383.tar.gz
prosody-c0f6d946e15e28b820fd7c0f301719c4c4425383.zip
MUC: Added legacy error code to the presence error returned when a banned user attempts to join.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 43b8eb4f..6917b21a 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -292,7 +292,9 @@ function room_mt:handle_to_occupant(origin, stanza) -- PM, vCards, etc
self:broadcast_presence(pr);
self:send_history(from);
else -- banned
- origin.send(st.error_reply(stanza, "auth", "forbidden"):tag("x", {xmlns = "http://jabber.org/protocol/muc"}));
+ local reply = st.error_reply(stanza, "auth", "forbidden"):up();
+ reply.tags[1].attr.code = "403";
+ origin.send(reply:tag("x", {xmlns = "http://jabber.org/protocol/muc"}));
end
end
end