Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6924:c37ad3e1fdd9
Merge 0.9->0.10
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 17 Nov 2015 17:04:04 +0000 |
parent | 6831:428b8da1cfce |
parent | 6923:f755e0bdc60a |
child | 6925:3c4799467dae |
child | 6982:c515f9491ce6 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Mon Nov 16 15:24:36 2015 +0100 +++ b/plugins/muc/muc.lib.lua Tue Nov 17 17:04:04 2015 +0000 @@ -361,7 +361,7 @@ end local function deconstruct_stanza_id(room, stanza) local from_jid_possiblybare, to_nick = stanza.attr.from, stanza.attr.to; - local from_jid, id, to_jid_hash = (base64.decode(stanza.attr.id) or ""):match("^(.+)%z(.*)%z(.+)$"); + local from_jid, id, to_jid_hash = (base64.decode(stanza.attr.id) or ""):match("^(%Z+)%z(%Z*)%z(.+)$"); local from_nick = room._jid_nick[from_jid]; if not(from_nick) then return; end