SPDX headers.

This commit is contained in:
John Livingston 2024-05-23 12:18:17 +02:00
parent d5c327565c
commit e8382f163b
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
48 changed files with 192 additions and 19 deletions

View File

@ -8,3 +8,11 @@ Source: https://github.com/JohnXLivingston/peertube-plugin-livechat/
# Files: src/* # Files: src/*
# Copyright: $YEAR $NAME <$CONTACT> # Copyright: $YEAR $NAME <$CONTACT>
# License: ... # License: ...
Files: languages/*
Copyright: 2024 John Livingston <https://www.john-livingston.fr/>
License: AGPL-3.0-only
Files: support/documentation/po/*
Copyright: 2024 John Livingston <https://www.john-livingston.fr/>
License: AGPL-3.0-only

9
LICENSES/MIT.txt Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) <year> <copyright holders>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 2023 David Revoy <https://www.davidrevoy.com>
SPDX-License-Identifier: CC-BY-4.0

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2008-2013 Matthew Wild
SPDX-FileCopyrightText: 2008-2013 Waqas Hussain
SPDX-FileCopyrightText: 2014 Kim Alvefur
SPDX-License-Identifier: MIT
-->
--- ---
labels: labels:
- Stage-Alpha - Stage-Alpha

View File

@ -5,7 +5,7 @@
-- --
-- This project is MIT/X11 licensed. Please see the -- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information. -- COPYING file in the source package for more information.
-- -- SPDX-License-Identifier: MIT
local new_sasl = require "util.sasl".new; local new_sasl = require "util.sasl".new;
local base64 = require "util.encodings".base64.encode; local base64 = require "util.encodings".base64.encode;

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_bot_peertubelivechat # mod_bot_peertubelivechat
This module is a custom module for the Peertube livechat plugin, that handle bots authentication. This module is a custom module for the Peertube livechat plugin, that handle bots authentication.

View File

@ -1,11 +1,10 @@
-- Prosody IM -- SPDX-FileCopyrightText: 2008-2013 Matthew Wild
-- Copyright (C) 2008-2013 Matthew Wild -- SPDX-FileCopyrightText: 2008-2013 Waqas Hussain
-- Copyright (C) 2008-2013 Waqas Hussain -- SPDX-FileCopyrightText: 2014 Kim Alvefur
-- Copyright (C) 2014 Kim Alvefur -- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
--
-- This project is MIT/X11 licensed. Please see the
-- COPYING file in the source package for more information.
-- --
-- SPDX-License-Identifier: MIT
-- SPDX-License-Identifier: AGPL-3.0-only
local new_sasl = require "util.sasl".new; local new_sasl = require "util.sasl".new;
local path = require "util.paths"; local path = require "util.paths";

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_http_peertubelivechat_manage_rooms # mod_http_peertubelivechat_manage_rooms
This module is a custom module that allows Peertube server to list chat rooms, and update some meta data. This module is a custom module that allows Peertube server to list chat rooms, and update some meta data.

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
--
-- SPDX-License-Identifier: AGPL-3.0-only
local json = require "util.json"; local json = require "util.json";
local jid_split = require"util.jid".split; local jid_split = require"util.jid".split;
local jid_prep = require"util.jid".prep; local jid_prep = require"util.jid".prep;

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_http_peertubelivechat_manage_users # mod_http_peertubelivechat_manage_users
This module is a custom module that allows Peertube server to manage users for some virtualhosts. This module is a custom module that allows Peertube server to manage users for some virtualhosts.

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
--
-- SPDX-License-Identifier: AGPL-3.0-only
local json = require "util.json"; local json = require "util.json";
local jid_split = require"util.jid".split; local jid_split = require"util.jid".split;
local usermanager = require "core.usermanager"; local usermanager = require "core.usermanager";

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_http_peertubelivechat_test # mod_http_peertubelivechat_test
This module is a custom module that allows Peertube to test communication with Prosody. This module is a custom module that allows Peertube to test communication with Prosody.

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
--
-- SPDX-License-Identifier: AGPL-3.0-only
local json = require "util.json"; local json = require "util.json";
local async = require "util.async"; local async = require "util.async";
local http = require "net.http"; local http = require "net.http";

View File

@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: Prosody Modules <https://hg.prosody.im/prosody-modules>
SPDX-License-Identifier: MIT
-->
--- ---
labels: labels:
- 'Stage-Alpha' - 'Stage-Alpha'

View File

@ -1,3 +1,6 @@
-- SPDX-FileCopyrightText: Prosody Modules <https://hg.prosody.im/prosody-modules>
-- SPDX-License-Identifier: MIT
module:set_global(); module:set_global();
local jid_bare, jid_host = require "util.jid".bare, require "util.jid".host; local jid_bare, jid_host = require "util.jid".bare, require "util.jid".host;

View File

@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2021 Kim Alvefur
SPDX-License-Identifier: MIT
-->
--- ---
summary: Seed MUC configuration from JSON REST API summary: Seed MUC configuration from JSON REST API
--- ---

View File

@ -1,8 +1,8 @@
-- Copyright (C) 2021 Kim Alvefur -- SPDX-FileCopyrightText: 2021 Kim Alvefur
-- Copyright (C) 2024 John Livingston -- SPDX-FileCopyrightText: 2024 John Livingston
-- --
-- This file is MIT licensed. Please see the -- SPDX-License-Identifier: MIT
-- COPYING file in the source package for more information. -- SPDX-License-Identifier: AGPL-3.0-only
-- --
-- This version contains a modification to take into account new config option "slow_mode_duration". -- This version contains a modification to take into account new config option "slow_mode_duration".
-- This option is introduced in the Peertube livechat plugin, by mod_muc_slow_mode. -- This option is introduced in the Peertube livechat plugin, by mod_muc_slow_mode.

View File

@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2015-2021 Kim Alvefur
SPDX-License-Identifier: MIT
-->
# Introduction # Introduction
This module implements [XEP-0425: Message Moderation]. This module implements [XEP-0425: Message Moderation].

View File

@ -1,8 +1,8 @@
-- mod_muc_moderation -- mod_muc_moderation
-- --
-- Copyright (C) 2015-2021 Kim Alvefur -- SPDX-FileCopyrightText: 2015-2021 Kim Alvefur
-- --
-- This file is MIT licensed. -- SPDX-License-Identifier: MIT
-- --
-- Implements: XEP-0425: Message Moderation -- Implements: XEP-0425: Message Moderation
-- --

View File

@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_muc_slow_mode # mod_muc_slow_mode
This module is a custom module that allows slow mode for MUC rooms. This module is a custom module that allows slow mode for MUC rooms.

View File

@ -1,6 +1,7 @@
-- mod_muc_slow_mode -- mod_muc_slow_mode
-- --
-- Copyright (C) 2024 John Livingston -- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
-- SPDX-License-Identifier: AGPL-3.0-only
-- --
-- This file is AGPL-v3 licensed. -- This file is AGPL-v3 licensed.
-- Please see the Peertube livechat plugin copyright information. -- Please see the Peertube livechat plugin copyright information.

View File

@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_pubsub_peertubelivechat # mod_pubsub_peertubelivechat
This module is a custom module that provide some pubsub services associated to a MUC room. This module is a custom module that provide some pubsub services associated to a MUC room.

View File

@ -1,3 +1,6 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
-- SPDX-License-Identifier: AGPL-3.0-only
-- This module create sort of a MEP equivalent to PEP, but for MUC chatrooms. -- This module create sort of a MEP equivalent to PEP, but for MUC chatrooms.
-- This idea is described in https://xmpp.org/extensions/xep-0316.html -- This idea is described in https://xmpp.org/extensions/xep-0316.html
-- but here there are some differences: -- but here there are some differences:

View File

@ -1,3 +1,7 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_random_vcard_peertubelivechat # mod_random_vcard_peertubelivechat
This module is a custom module that allows Prosody to generate random vCards avatars for anonymous users. This module is a custom module that allows Prosody to generate random vCards avatars for anonymous users.

View File

@ -1,3 +1,6 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
-- SPDX-License-Identifier: AGPL-3.0-only
local st = require "util.stanza"; local st = require "util.stanza";
local path = require "util.paths"; local path = require "util.paths";
local b64 = require "util.encodings".base64.encode; local b64 = require "util.encodings".base64.encode;

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_s2s_peertubelivechat # mod_s2s_peertubelivechat
This module is part of peertube-plugin-livechat, and is under the same LICENSE. This module is part of peertube-plugin-livechat, and is under the same LICENSE.

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
--
-- SPDX-License-Identifier: AGPL-3.0-only
module:set_global(); module:set_global();
local path = require "util.paths"; local path = require "util.paths";

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_vcard_peertubelivechat # mod_vcard_peertubelivechat
This module is a custom module that allows Prosody to load vCards from Peertube. This module is a custom module that allows Prosody to load vCards from Peertube.

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
--
-- SPDX-License-Identifier: AGPL-3.0-only
local st = require "util.stanza"; local st = require "util.stanza";
local http = require "net.http"; local http = require "net.http";
local gettime = require 'socket'.gettime; local gettime = require 'socket'.gettime;

View File

@ -1,3 +1,9 @@
<!--
SPDX-FileCopyrightText: 2024 John Livingston <https://www.john-livingston.fr/>
SPDX-License-Identifier: AGPL-3.0-only
-->
# mod_websocket_s2s_peertubelivechat # mod_websocket_s2s_peertubelivechat
This module is part of peertube-plugin-livechat, and is under the same LICENSE. This module is part of peertube-plugin-livechat, and is under the same LICENSE.

View File

@ -1,7 +1,8 @@
-- Prosody IM -- SPDX-FileCopyrightText: 2012-2014 Florian Zeitz
-- Copyright (C) 2012-2014 Florian Zeitz -- SPDX-FileCopyrightText: 2023-2024 John Livingston <https://www.john-livingston.fr/>
-- Copyright (C) 2023 John Livingston --
-- Copied from original Prosody mod_websocket module (MIT/X11 licensed). Provided with Peertube Livechat plugin (AGPL-v3). -- SPDX-License-Identifier: MIT
-- SPDX-License-Identifier: AGPL-3.0-only
module:set_global(); module:set_global();