Changeset

8526:f1a46eef9df1

MUC: Treat missing type and type=normal the same
author Kim Alvefur <zash@zash.se>
date Fri, 20 Oct 2017 05:18:58 +0200
parents 8525:7be8f649d97d
children 8527:0a3dced117f7
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	Wed Dec 27 01:00:34 2017 +0100
+++ b/plugins/muc/muc.lib.lua	Fri Oct 20 05:18:58 2017 +0200
@@ -1128,7 +1128,7 @@
 		return self:handle_groupchat_to_room(origin, stanza)
 	elseif type == "error" and is_kickable_error(stanza) then
 		return self:handle_kickable(origin, stanza)
-	elseif type == nil then
+	elseif type == nil or type == "normal" then
 		local x = stanza:get_child("x", "http://jabber.org/protocol/muc#user");
 		if x then
 			local payload = x.tags[1];