From 1dcb117ce4f0215f304b90472db7ea0627cf0b15 Mon Sep 17 00:00:00 2001 From: Egor Date: Wed, 4 Jun 2025 15:42:46 +0300 Subject: [PATCH] add copyright information to all source files --- lua/channeldump.lua | 2 ++ lua/ctcp.lua | 2 ++ lua/init.lua | 2 ++ lua/irccloud.lua | 2 ++ lua/spam.lua | 2 ++ src/admin.cpp | 2 ++ src/admin.h | 2 ++ src/common.h | 3 +++ src/crypt_blowfish.cpp | 4 +++- src/crypt_blowfish.h | 3 +++ src/irc.cpp | 3 +++ src/irc.h | 3 +++ src/ircfmt.cpp | 2 ++ src/ircfmt.h | 2 ++ src/job.cpp | 2 ++ src/job.h | 2 ++ src/main.cpp | 3 +++ src/map.cpp | 2 ++ src/map.h | 2 ++ src/net.cpp | 3 +++ src/net.h | 3 +++ src/netpoll.cpp | 2 ++ src/netpoll.h | 2 ++ src/netsock.cpp | 3 +++ src/netsock.h | 3 +++ src/passwd.cpp | 2 ++ src/passwd.h | 2 ++ src/setpass.cpp | 2 ++ src/util.cpp | 3 +++ src/util.h | 3 +++ 30 files changed, 72 insertions(+), 1 deletion(-) diff --git a/lua/channeldump.lua b/lua/channeldump.lua index 8bf43b3..d6d4f7c 100644 --- a/lua/channeldump.lua +++ b/lua/channeldump.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2023 Egor +-- SPDX-License-Identifier: GPL-2.0-or-later local function showlist(name, ls) local x for k,v in pairs(ls) do diff --git a/lua/ctcp.lua b/lua/ctcp.lua index b033d3c..b3dd557 100644 --- a/lua/ctcp.lua +++ b/lua/ctcp.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2024 Egor +-- SPDX-License-Identifier: GPL-2.0-or-later -- ctcp probe module local servicename = "cia!cia@cia.gov" function commands.refreshctcp(client, source, command, args) diff --git a/lua/init.lua b/lua/init.lua index 7a139a3..1cc1d50 100644 --- a/lua/init.lua +++ b/lua/init.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2023-2025 Egor +-- SPDX-License-Identifier: GPL-2.0-or-later function commands.reload(client, source, command, args) client_notice(client, "reloading...") dofile(getluafile "init.lua") diff --git a/lua/irccloud.lua b/lua/irccloud.lua index 49af559..1a83568 100644 --- a/lua/irccloud.lua +++ b/lua/irccloud.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2024 Egor +-- SPDX-License-Identifier: GPL-2.0-or-later -- irccloud authentication support local function parseipv6(s) if not s:match("^[0-9a-fA-F:]*$") then diff --git a/lua/spam.lua b/lua/spam.lua index 2011307..f63a2bc 100644 --- a/lua/spam.lua +++ b/lua/spam.lua @@ -1,3 +1,5 @@ +-- Copyright (c) 2024-2025 Egor +-- SPDX-License-Identifier: GPL-2.0-or-later -- spam filtering if not spamlevel then spamlevel = 0 diff --git a/src/admin.cpp b/src/admin.cpp index b3c85c9..46faeb2 100644 --- a/src/admin.cpp +++ b/src/admin.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2023-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifdef HAS_LUA #include "admin.h" #include "irc.h" diff --git a/src/admin.h b/src/admin.h index 2076d85..dcfeff4 100644 --- a/src/admin.h +++ b/src/admin.h @@ -1,3 +1,5 @@ +// Copyright (c) 2023-2024 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef ADMIN_H_ #define ADMIN_H_ #ifdef HAS_LUA diff --git a/src/common.h b/src/common.h index c5ec57a..5fe8dcc 100644 --- a/src/common.h +++ b/src/common.h @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef COMMON_H_ #define COMMON_H_ #include "netsock.h" diff --git a/src/crypt_blowfish.cpp b/src/crypt_blowfish.cpp index e4b4602..f45f65a 100644 --- a/src/crypt_blowfish.cpp +++ b/src/crypt_blowfish.cpp @@ -1,4 +1,6 @@ -/* SPDX-License-Identifier: MIT */ +// Copyright (c) 1998-2014 Solar Designer +// Copyright (c) 2005-2020 Rich Felker, et al. +// SPDX-License-Identifier: MIT #include "crypt_blowfish.h" /* Modified by Rich Felker in for inclusion in musl libc, based on * Solar Designer's second size-optimized version sent to the musl diff --git a/src/crypt_blowfish.h b/src/crypt_blowfish.h index fe0c2a0..231a66c 100644 --- a/src/crypt_blowfish.h +++ b/src/crypt_blowfish.h @@ -1 +1,4 @@ +// Copyright (c) 1998-2014 Solar Designer +// Copyright (c) 2005-2020 Rich Felker, et al. +// SPDX-License-Identifier: MIT char *crypt_blowfish(const char *key, const char *setting, char *output); diff --git a/src/irc.cpp b/src/irc.cpp index d4a2c91..0256c0d 100644 --- a/src/irc.cpp +++ b/src/irc.cpp @@ -1,3 +1,6 @@ +// Copyright (c) 2022, 2024 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "irc.h" #include "ircfmt.h" #include "passwd.h" diff --git a/src/irc.h b/src/irc.h index 3786f32..ab9f47f 100644 --- a/src/irc.h +++ b/src/irc.h @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2024 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef IRC_H_ #define IRC_H_ diff --git a/src/ircfmt.cpp b/src/ircfmt.cpp index c60edfd..b02dd08 100644 --- a/src/ircfmt.cpp +++ b/src/ircfmt.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "ircfmt.h" static const char *format_prefixes(struct client_data *client, struct client_data *cl, struct channel *chan) { if (!chan) return ""; diff --git a/src/ircfmt.h b/src/ircfmt.h index f1b1825..ac3deb0 100644 --- a/src/ircfmt.h +++ b/src/ircfmt.h @@ -1,3 +1,5 @@ +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef IRCFMT_H_ #define IRCFMT_H_ #include "irc.h" diff --git a/src/job.cpp b/src/job.cpp index 04c262e..ecca38f 100644 --- a/src/job.cpp +++ b/src/job.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "common.h" #include "job.h" #include "passwd.h" diff --git a/src/job.h b/src/job.h index 609def5..90f926b 100644 --- a/src/job.h +++ b/src/job.h @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef JOB_H_ #define JOB_H_ typedef int (*jobproc_t)(struct client_data *cl, const char *data, size_t len); diff --git a/src/main.cpp b/src/main.cpp index 66921ec..dd9e6ee 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "common.h" #include "net.h" #include "irc.h" diff --git a/src/map.cpp b/src/map.cpp index 2111e80..fe70d96 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2023, 2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "common.h" #include "map.h" #include diff --git a/src/map.h b/src/map.h index 90f6e55..440f093 100644 --- a/src/map.h +++ b/src/map.h @@ -1,3 +1,5 @@ +// Copyright (c) 2023, 2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef MAP_H_ #define MAP_H_ #include diff --git a/src/net.cpp b/src/net.cpp index e2246dd..749a1c5 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "net.h" #include "irc.h" #include "ircfmt.h" diff --git a/src/net.h b/src/net.h index 32d71ce..307ac97 100644 --- a/src/net.h +++ b/src/net.h @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2024 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef NET_H_ #define NET_H_ #include "common.h" diff --git a/src/netpoll.cpp b/src/netpoll.cpp index c282c6a..2d447e9 100644 --- a/src/netpoll.cpp +++ b/src/netpoll.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2023-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "netpoll.h" #include "util.h" diff --git a/src/netpoll.h b/src/netpoll.h index b0c393b..3326771 100644 --- a/src/netpoll.h +++ b/src/netpoll.h @@ -1,3 +1,5 @@ +// Copyright (c) 2023, 2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef NETPOLL_H_ #define NETPOLL_H_ #include "netsock.h" diff --git a/src/netsock.cpp b/src/netsock.cpp index 3a11521..73550f3 100644 --- a/src/netsock.cpp +++ b/src/netsock.cpp @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2023, 2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "netsock.h" int net_nonblock(SOCKET fd) diff --git a/src/netsock.h b/src/netsock.h index ee8561e..4ea7ec4 100644 --- a/src/netsock.h +++ b/src/netsock.h @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef NETSOCK_H_ #define NETSOCK_H_ diff --git a/src/passwd.cpp b/src/passwd.cpp index e203262..569614c 100644 --- a/src/passwd.cpp +++ b/src/passwd.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "netsock.h" #include #include diff --git a/src/passwd.h b/src/passwd.h index 3716475..bd27035 100644 --- a/src/passwd.h +++ b/src/passwd.h @@ -1,3 +1,5 @@ +// Copyright (c) 2022-2024 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef PASSWD_H_ #define PASSWD_H_ char *password_crypt(const char *key, const char *setting); diff --git a/src/setpass.cpp b/src/setpass.cpp index afebf4f..d33053c 100644 --- a/src/setpass.cpp +++ b/src/setpass.cpp @@ -1,3 +1,5 @@ +// Copyright (c) 2022-2023, 2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include #include "passwd.h" int main(int argc, char **argv) diff --git a/src/util.cpp b/src/util.cpp index 8669a62..af16650 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #include "util.h" #include #include diff --git a/src/util.h b/src/util.h index 9f693c0..1adf29f 100644 --- a/src/util.h +++ b/src/util.h @@ -1,3 +1,6 @@ +// Copyright (c) 2022 Sam Smith +// Copyright (c) 2022-2025 Egor +// SPDX-License-Identifier: GPL-2.0-or-later #ifndef UTIL_H_ #define UTIL_H_ #include -- 2.56.0