aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-10-20 05:18:58 +0200
committerKim Alvefur <zash@zash.se>2017-10-20 05:18:58 +0200
commitc90d33f06acc07ee5bbacf71dd6595a4dbc3a6b9 (patch)
tree811de7951cee97879fb91958a0d94a7f3577a8d3 /plugins
parentd0c3e64ff92602968284e398a18e817b078c4356 (diff)
downloadprosody-c90d33f06acc07ee5bbacf71dd6595a4dbc3a6b9.tar.gz
prosody-c90d33f06acc07ee5bbacf71dd6595a4dbc3a6b9.zip
MUC: Treat missing type and type=normal the same
Diffstat (limited to 'plugins')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 6214fa38..93a30ab5 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1128,7 +1128,7 @@ function room_mt:handle_message_to_room(origin, stanza)
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];