Software /
code /
prosody-modules
Comparison
mod_muc_inject_mentions/mod_muc_inject_mentions.lua @ 4311:a6c253bc63a5
End value is index+1 as per the newest revision https://xmpp.org/extensions/xep-0372.html#revision-history-v0.4.0
author | Seve Ferrer <seve@delape.net> |
---|---|
date | Tue, 22 Dec 2020 11:18:46 +0100 |
parent | 4253:32b4901a9d8d |
child | 4312:33a41503b9e3 |
comparison
equal
deleted
inserted
replaced
4310:b0ad1604f77e | 4311:a6c253bc63a5 |
---|---|
249 -- https://xmpp.org/extensions/xep-0372.html#usecase_mention | 249 -- https://xmpp.org/extensions/xep-0372.html#usecase_mention |
250 stanza:tag( | 250 stanza:tag( |
251 "reference", { | 251 "reference", { |
252 xmlns=reference_xmlns, | 252 xmlns=reference_xmlns, |
253 begin=tostring(mention.first - 1), -- count starts at 0 | 253 begin=tostring(mention.first - 1), -- count starts at 0 |
254 ["end"]=tostring(mention.last - 1), | 254 ["end"]=tostring(mention.last), |
255 type="mention", | 255 type="mention", |
256 uri="xmpp:" .. mention.bare_jid, | 256 uri="xmpp:" .. mention.bare_jid, |
257 } | 257 } |
258 ):up() | 258 ):up() |
259 end | 259 end |