From a621864c1e4d0cee0d398b444887ac6735746d39 Mon Sep 17 00:00:00 2001 From: Wolvan Date: Fri, 20 Nov 2015 13:15:38 +0100 Subject: [PATCH] Apply license properly Put the license information in each source file the way GPL-2.0 says and remove the "How to apply this license" part from LICENSE.md --- LICENSE.md | 61 -------------------------------------- config/default.js | 19 ++++++++++++ main.js | 20 +++++++++++++ modules/GitterChat.js | 19 ++++++++++++ modules/GitterIRCBridge.js | 19 ++++++++++++ modules/IRCChat.js | 19 ++++++++++++ 6 files changed, 96 insertions(+), 61 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index 74d573e..e103f30 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -281,64 +281,3 @@ modification follow. POSSIBILITY OF SUCH DAMAGES. ## END OF TERMS AND CONDITIONS ## - ---------------------------------------------------------------------------- - -### How to Apply These Terms to Your New Programs ### - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - - Also add information on how to contact you by electronic and paper mail. - - If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - - The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - - You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. diff --git a/config/default.js b/config/default.js index f454dba..8e2cb24 100644 --- a/config/default.js +++ b/config/default.js @@ -1,3 +1,22 @@ +/* + A multi-functional bot for the NXKit Team + Copyright (C) 2015 Wolvan + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + module.exports = { GitterIRCBridges: [ { diff --git a/main.js b/main.js index 5b26168..834f07e 100644 --- a/main.js +++ b/main.js @@ -1,3 +1,23 @@ +/* + A multi-functional bot for the NXKit Team + Copyright (C) 2015 Wolvan + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +console.log("NewXKitBot version 2, Copyright (C) 2015 Wolvan\nNewXKitBot comes with ABSOLUTELY NO WARRANTY\n\n"); console.log("Starting up NewXKitBot v2.0 by Wolvan...\n"); var GitterIRCBridge = require("./modules/GitterIRCBridge.js"); diff --git a/modules/GitterChat.js b/modules/GitterChat.js index 617ca02..d764088 100644 --- a/modules/GitterChat.js +++ b/modules/GitterChat.js @@ -1,3 +1,22 @@ +/* + A multi-functional bot for the NXKit Team + Copyright (C) 2015 Wolvan + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + var Gitter = require('node-gitter'); function GitterChat(gitter_token, channel, cmd_prefix) { diff --git a/modules/GitterIRCBridge.js b/modules/GitterIRCBridge.js index 2918006..5be4350 100644 --- a/modules/GitterIRCBridge.js +++ b/modules/GitterIRCBridge.js @@ -1,3 +1,22 @@ +/* + A multi-functional bot for the NXKit Team + Copyright (C) 2015 Wolvan + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + var GitterChat = require("./GitterChat"); var IRCChat = require("./IRCChat"); var octonode = require("octonode"); diff --git a/modules/IRCChat.js b/modules/IRCChat.js index 0216b2c..d7c9077 100644 --- a/modules/IRCChat.js +++ b/modules/IRCChat.js @@ -1,3 +1,22 @@ +/* + A multi-functional bot for the NXKit Team + Copyright (C) 2015 Wolvan + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + var irc = require('irc'); var IRCConnections = {};