mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 05:07:42 +03:00
Add copyright header to those files missing one
This commit is contained in:
parent
def653fa26
commit
e45610ce6e
36 changed files with 288 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local actions = {};
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local t_insert = table.insert;
|
||||
local ipairs = ipairs;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local hosts = hosts;
|
||||
local configmanager = require "core.configmanager";
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local format, rep = string.format, string.rep;
|
||||
local pcall = pcall;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local new_multitable = require "util.multitable".new;
|
||||
local t_insert = table.insert;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local type = type;
|
||||
local tonumber = tonumber;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local server = require "net.server";
|
||||
local dns = require "net.dns";
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local socket = require "socket"
|
||||
local mime = require "mime"
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local log = require "util.logger".init("httpclient_listener");
|
||||
|
||||
local connlisteners_register = require "net.connlisteners".register;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local socket = require "socket"
|
||||
local server = require "net.server"
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
|
||||
local connlisteners_register = require "net.connlisteners".register;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
--[[
|
||||
|
||||
server.lua by blastbeat
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local httpserver = require "net.httpserver";
|
||||
local t_concat, t_insert = table.concat, table.insert;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local st, jid, set = require "util.stanza", require "util.jid", require "util.set";
|
||||
|
||||
local is_admin = require "core.usermanager".is_admin;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
module.host = "*" -- Global module
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local groups = { default = {} };
|
||||
local members = { [false] = {} };
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local httpserver = require "net.httpserver";
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local st = require "util.stanza";
|
||||
local jid_split = require "util.jid".split;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local full_sessions = full_sessions;
|
||||
local bare_sessions = bare_sessions;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
if module:get_host_type() ~= "component" then
|
||||
error("MUC should be loaded as a component, please see http://prosody.im/doc/components", 0);
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local datamanager = require "util.datamanager";
|
||||
local st = require "util.stanza";
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local jid_bare = require "util.jid".bare;
|
||||
local jid_split = require "util.jid".split;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local want_pposix_version = "0.3.0";
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local st = require "util.stanza";
|
||||
local datamanager = require "util.datamanager";
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local host = module:get_host();
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
function preserialize(preserialize, st)
|
||||
local stanza = st.stanza("message", { a = "a" });
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local format = string.format;
|
||||
local print = print;
|
||||
local debug = debug;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local array = {};
|
||||
|
||||
local array_mt = { __index = array, __tostring = function (array) return array:concat(", "); end };
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local setmetatable = setmetatable;
|
||||
local pairs, ipairs = pairs, ipairs;
|
||||
local tostring, type = tostring, type;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local ipairs = ipairs;
|
||||
local pairs = pairs;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local hashes = require "util.hashes"
|
||||
local xor = require "bit".bxor
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
--[[ Iterators ]]--
|
||||
|
||||
-- Reverse an iterator
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local plugin_dir = CFG_PLUGINDIR or "./plugins/";
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local config = require "core.configmanager";
|
||||
local encodings = require "util.encodings";
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
|
||||
local ipairs, pairs, setmetatable, type =
|
||||
ipairs, pairs, setmetatable, type;
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
-- Prosody IM
|
||||
-- Copyright (C) 2008-2009 Matthew Wild
|
||||
-- Copyright (C) 2008-2009 Waqas Hussain
|
||||
--
|
||||
-- This project is MIT/X11 licensed. Please see the
|
||||
-- COPYING file in the source package for more information.
|
||||
--
|
||||
|
||||
local ipairs, pairs, setmetatable, next, tostring =
|
||||
ipairs, pairs, setmetatable, next, tostring;
|
||||
local t_concat = table.concat;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue