Diff

plugins/muc/muc.lib.lua @ 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
parent 8519:e7808f8d7d11
child 8527:0a3dced117f7
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];