Software /
code /
prosody
Comparison
plugins/mod_carbons.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 13:15:28 +0100 |
parent | 12308:063ce658c181 |
comparison
equal
deleted
inserted
replaced
12976:a187600ec7d6 | 12977:74b9e05af71e |
---|---|
1 -- XEP-0280: Message Carbons implementation for Prosody | 1 -- XEP-0280: Message Carbons implementation for Prosody |
2 -- Copyright (C) 2011-2016 Kim Alvefur | 2 -- Copyright (C) 2011-2016 Kim Alvefur |
3 -- | 3 -- |
4 -- This file is MIT/X11 licensed. | 4 -- This file is MIT/X11 licensed. |
5 | 5 |
6 local st = require "util.stanza"; | 6 local st = require "prosody.util.stanza"; |
7 local jid_bare = require "util.jid".bare; | 7 local jid_bare = require "prosody.util.jid".bare; |
8 local jid_resource = require "util.jid".resource; | 8 local jid_resource = require "prosody.util.jid".resource; |
9 local xmlns_carbons = "urn:xmpp:carbons:2"; | 9 local xmlns_carbons = "urn:xmpp:carbons:2"; |
10 local xmlns_forward = "urn:xmpp:forward:0"; | 10 local xmlns_forward = "urn:xmpp:forward:0"; |
11 local full_sessions, bare_sessions = prosody.full_sessions, prosody.bare_sessions; | 11 local full_sessions, bare_sessions = prosody.full_sessions, prosody.bare_sessions; |
12 | 12 |
13 module:add_feature("urn:xmpp:carbons:rules:0"); | 13 module:add_feature("urn:xmpp:carbons:rules:0"); |