--- /dev/null
+../COPYING
\ No newline at end of file
--- /dev/null
+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.
--- /dev/null
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+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 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.
+
+For more information, please refer to <http://unlicense.org/>
If you're installing system-wide, the following is sufficient:
`-DLOCALSTATEDIR=/var -DDATADIR=/usr/share`
+
+## Copyright
+Copyright (c) 2022, 2024 Sam Smith
+Copyright (c) 2022-2025 Egor
+SPDX-License-Identifier: GPL-2.0-or-later
+
+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, see <https://www.gnu.org/licenses/>.
--- /dev/null
+version = 1
+
+[[annotations]]
+path = [
+ ".gitignore",
+ "data/.gitignore",
+
+ "Makefile",
+ "config.example.mk",
+
+ "data/help.example.txt",
+
+ "vg",
+ "libtls.suppressions",
+]
+SPDX-FileCopyrightText = "Copyright (c) 2022-2025 Egor"
+SPDX-License-Identifier = "Unlicense"
+
+# this is to avoid a stray line being picked up as FileCopyrightText
+[[annotations]]
+path = "src/crypt_blowfish.cpp"
+precedence = "override"
+SPDX-FileCopyrightText = [
+ "Copyright (c) 1998-2014 Solar Designer",
+ "Copyright (c) 2005-2020 Rich Felker, et al.",
+]
+SPDX-License-Identifier = "MIT"
}
}
+static void show_license(void)
+{
+ fprintf(stderr,
+"PatchyIRCD 0.0.1\n"
+"Copyright (c) 2022, 2024 Sam Smith\n"
+"Copyright (c) 2022-2025 Egor\n"
+"\n"
+"This program is free software; you can redistribute it and/or modify\n"
+"it under the terms of the GNU General Public License as published by\n"
+"the Free Software Foundation; either version 2 of the License, or\n"
+"(at your option) any later version.\n"
+"\n"
+"This program is distributed in the hope that it will be useful,\n"
+"but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
+"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n"
+"GNU General Public License for more details.\n"
+"\n"
+"You should have received a copy of the GNU General Public License along\n"
+"with this program; if not, see <https://www.gnu.org/licenses/>.\n");
+}
+
int main(int argc, char *argv[])
{
#define MAX_LISTENERS 16
struct listener listeners[MAX_LISTENERS];
int listener_count = 0;
setlocale(LC_ALL, "C");
+
+ show_license();
+
fprintf(stderr, "[PatchyIRCD]: Starting up...\n");
net_init();