Software /
code /
prosody
Comparison
tools/ejabberd2prosody.lua @ 12387:05c250fa335a
Spelling: Fix various spelling mistakes (thanks timeless)
Words, sometimes I wonder how they even work
Maybe I missed something.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 07 Mar 2022 00:13:56 +0100 |
parent | 11871:5dcbba569fb9 |
comparison
equal
deleted
inserted
replaced
12386:2d3080d02960 | 12387:05c250fa335a |
---|---|
185 function muc_room(node, host, properties) | 185 function muc_room(node, host, properties) |
186 local store = { jid = node.."@"..host, _data = {}, _affiliations = {} }; | 186 local store = { jid = node.."@"..host, _data = {}, _affiliations = {} }; |
187 for _,aff in ipairs(properties.affiliations) do | 187 for _,aff in ipairs(properties.affiliations) do |
188 store._affiliations[build_jid(aff[1])] = aff[2][1] or aff[2]; | 188 store._affiliations[build_jid(aff[1])] = aff[2][1] or aff[2]; |
189 end | 189 end |
190 -- destructre ejabberd's subject datum (e.g. [{text,<<>>,<<"my room subject">>}] ) | 190 -- destructure ejabberd's subject datum (e.g. [{text,<<>>,<<"my room subject">>}] ) |
191 store._data.subject = properties.subject[1][3]; | 191 store._data.subject = properties.subject[1][3]; |
192 if properties.subject_author then | 192 if properties.subject_author then |
193 store._data.subject_from = store.jid .. "/" .. properties.subject_author; | 193 store._data.subject_from = store.jid .. "/" .. properties.subject_author; |
194 end | 194 end |
195 store._data.name = properties.title; | 195 store._data.name = properties.title; |