Comparison

plugins/carbons.lua @ 490:6b2f31da9610

Update for new Prosody module namespace
author Kim Alvefur <zash@zash.se>
date Sat, 20 May 2023 20:48:03 +0200
parent 318:598552fc085b
comparison
equal deleted inserted replaced
489:39ed19f12dca 490:6b2f31da9610
1 local verse = require "verse"; 1 local verse = require "verse";
2 2
3 local xmlns_carbons = "urn:xmpp:carbons:2"; 3 local xmlns_carbons = "urn:xmpp:carbons:2";
4 local xmlns_forward = "urn:xmpp:forward:0"; 4 local xmlns_forward = "urn:xmpp:forward:0";
5 local os_time = os.time; 5 local os_time = os.time;
6 local parse_datetime = require "util.datetime".parse; 6 local parse_datetime = require "prosody.util.datetime".parse;
7 local bare_jid = require "util.jid".bare; 7 local bare_jid = require "prosody.util.jid".bare;
8 8
9 -- TODO Check disco for support 9 -- TODO Check disco for support
10 10
11 function verse.plugins.carbons(stream) 11 function verse.plugins.carbons(stream)
12 local carbons = {}; 12 local carbons = {};