# HG changeset patch # User Matthew Wild # Date 1247191718 -3600 # Node ID 569d58d21612a53eddae9f7c1b470c3f565a4046 # Parent cee81a5ae9498724f7821e6a616210d35cf54692 Add copyright header to those files missing one diff -r cee81a5ae949 -r 569d58d21612 core/actions.lua --- a/core/actions.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/core/actions.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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 = {}; diff -r cee81a5ae949 -r 569d58d21612 core/eventmanager.lua --- a/core/eventmanager.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/core/eventmanager.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 core/hostmanager.lua --- a/core/hostmanager.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/core/hostmanager.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 core/loggingmanager.lua --- a/core/loggingmanager.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/core/loggingmanager.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 core/objectmanager.lua --- a/core/objectmanager.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/core/objectmanager.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 fallbacks/bit.lua --- a/fallbacks/bit.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/fallbacks/bit.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 net/adns.lua --- a/net/adns.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/net/adns.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 net/http.lua --- a/net/http.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/net/http.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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" diff -r cee81a5ae949 -r 569d58d21612 net/httpclient_listener.lua --- a/net/httpclient_listener.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/net/httpclient_listener.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 net/httpserver.lua --- a/net/httpserver.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/net/httpserver.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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" diff -r cee81a5ae949 -r 569d58d21612 net/httpserver_listener.lua --- a/net/httpserver_listener.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/net/httpserver_listener.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 net/server.lua --- a/net/server.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/net/server.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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 diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_actions_http.lua --- a/plugins/mod_actions_http.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_actions_http.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_announce.lua --- a/plugins/mod_announce.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_announce.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_bosh.lua --- a/plugins/mod_bosh.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_bosh.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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 diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_groups.lua --- a/plugins/mod_groups.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_groups.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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] = {} }; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_httpserver.lua --- a/plugins/mod_httpserver.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_httpserver.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_iq.lua --- a/plugins/mod_iq.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_iq.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_message.lua --- a/plugins/mod_message.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_message.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_muc.lua --- a/plugins/mod_muc.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_muc.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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); diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_offline.lua --- a/plugins/mod_offline.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_offline.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_pep.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_posix.lua --- a/plugins/mod_posix.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_posix.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_privacy.lua --- a/plugins/mod_privacy.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_privacy.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 plugins/mod_watchregistrations.lua --- a/plugins/mod_watchregistrations.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/plugins/mod_watchregistrations.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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(); diff -r cee81a5ae949 -r 569d58d21612 tests/test_util_stanza.lua --- a/tests/test_util_stanza.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/tests/test_util_stanza.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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" }); diff -r cee81a5ae949 -r 569d58d21612 tests/util/logger.lua --- a/tests/util/logger.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/tests/util/logger.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 util/array.lua --- a/util/array.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/array.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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 }; diff -r cee81a5ae949 -r 569d58d21612 util/dataforms.lua --- a/util/dataforms.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/dataforms.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 util/events.lua --- a/util/events.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/events.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 util/hmac.lua --- a/util/hmac.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/hmac.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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 diff -r cee81a5ae949 -r 569d58d21612 util/iterators.lua --- a/util/iterators.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/iterators.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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 diff -r cee81a5ae949 -r 569d58d21612 util/pluginloader.lua --- a/util/pluginloader.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/pluginloader.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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/"; diff -r cee81a5ae949 -r 569d58d21612 util/prosodyctl.lua --- a/util/prosodyctl.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/prosodyctl.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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"; diff -r cee81a5ae949 -r 569d58d21612 util/pubsub.lua --- a/util/pubsub.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/pubsub.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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; diff -r cee81a5ae949 -r 569d58d21612 util/set.lua --- a/util/set.lua Fri Jul 10 02:50:57 2009 +0100 +++ b/util/set.lua Fri Jul 10 03:08:38 2009 +0100 @@ -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;