Changeset

5294:87f07dd0bbfb

MUC: Don't reply to errors (thanks iron)
author Kim Alvefur <zash@zash.se>
date Wed, 09 Jan 2013 17:56:40 +0100
parents 5293:fe9215155453
children 5295:eef393a37e38
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Tue Jan 08 21:20:00 2013 +0100
+++ b/plugins/muc/muc.lib.lua	Wed Jan 09 17:56:40 2013 +0100
@@ -529,7 +529,7 @@
 				self:_route_stanza(stanza);
 			end
 			stanza.attr.from, stanza.attr.to, stanza.attr.id = from, to, id;
-		else
+		elseif type ~= "error" then
 			origin.send(st.error_reply(stanza, "cancel", "not-acceptable"));
 		end
 	elseif stanza.name == "message" and type == "groupchat" then -- groupchat messages not allowed in PM