From 761dda25756049eb9f8ec58f252f4237c84b54df Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 4 Dec 2020 13:28:53 +0300 Subject: [PATCH 01/16] Properly stop room's processor --- daemon.go | 1 + goircd.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index ce2dd00..0bf695c 100644 --- a/daemon.go +++ b/daemon.go @@ -74,6 +74,7 @@ EventsCycle: log.Println(rn, "emptied room") } delete(rooms, rn) + r.events <- ClientEvent{eventType: EventTerm} close(r.events) } } diff --git a/goircd.go b/goircd.go index f8aad49..7d33b7e 100644 --- a/goircd.go +++ b/goircd.go @@ -33,7 +33,7 @@ import ( ) const ( - Version = "1.9.0" + Version = "1.9.1" StateTopicFilename = "topic" StateKeyFilename = "key" -- 2.52.0 From eaf030e5c88acd8658e8990f4449486f7e2dbc82 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 5 Jan 2021 20:48:29 +0300 Subject: [PATCH 02/16] Raise copyright years --- client.go | 2 +- client_test.go | 2 +- common_test.go | 2 +- daemon.go | 2 +- daemon_test.go | 2 +- goircd.go | 2 +- log.go | 2 +- room.go | 2 +- room_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client.go b/client.go index 6a21ab0..0bfc537 100644 --- a/client.go +++ b/client.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/client_test.go b/client_test.go index ed71da8..d9bb8ca 100644 --- a/client_test.go +++ b/client_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/common_test.go b/common_test.go index 9750b86..3a21845 100644 --- a/common_test.go +++ b/common_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/daemon.go b/daemon.go index 0bf695c..b7aee88 100644 --- a/daemon.go +++ b/daemon.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/daemon_test.go b/daemon_test.go index 76d6203..e6050f6 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/goircd.go b/goircd.go index 7d33b7e..524b66d 100644 --- a/goircd.go +++ b/goircd.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/log.go b/log.go index 08367cb..93a0efb 100644 --- a/log.go +++ b/log.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/room.go b/room.go index cc2b0d7..3b52a1b 100644 --- a/room.go +++ b/room.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 diff --git a/room_test.go b/room_test.go index 97c202b..8638cc4 100644 --- a/room_test.go +++ b/room_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2020 Sergey Matveev +Copyright (C) 2014-2021 Sergey Matveev 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 -- 2.52.0 From 14b38769cdece09d57423873043372ff724fc249 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 7 Jan 2022 21:06:11 +0300 Subject: [PATCH 03/16] Raised copyright years --- client.go | 2 +- client_test.go | 2 +- common_test.go | 2 +- daemon.go | 2 +- daemon_test.go | 2 +- goircd.go | 2 +- log.go | 2 +- room.go | 2 +- room_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client.go b/client.go index 0bfc537..6e82e14 100644 --- a/client.go +++ b/client.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/client_test.go b/client_test.go index d9bb8ca..bfc8679 100644 --- a/client_test.go +++ b/client_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/common_test.go b/common_test.go index 3a21845..c9446ba 100644 --- a/common_test.go +++ b/common_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/daemon.go b/daemon.go index b7aee88..07cfb2a 100644 --- a/daemon.go +++ b/daemon.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/daemon_test.go b/daemon_test.go index e6050f6..bcd8326 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/goircd.go b/goircd.go index 524b66d..ddf8128 100644 --- a/goircd.go +++ b/goircd.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/log.go b/log.go index 93a0efb..fa24f30 100644 --- a/log.go +++ b/log.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/room.go b/room.go index 3b52a1b..e5aa05c 100644 --- a/room.go +++ b/room.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 diff --git a/room_test.go b/room_test.go index 8638cc4..aeac031 100644 --- a/room_test.go +++ b/room_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2021 Sergey Matveev +Copyright (C) 2014-2022 Sergey Matveev 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 -- 2.52.0 From 6f9d7fae374e5ada6c33f585db748f23fbc49f91 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 30 Aug 2022 16:26:20 +0300 Subject: [PATCH 04/16] io/ioutil is deprecated since Go 1.16 --- client.go | 6 +++--- daemon_test.go | 3 +-- goircd.go | 9 ++++----- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/client.go b/client.go index 6e82e14..bd65d37 100644 --- a/client.go +++ b/client.go @@ -23,9 +23,9 @@ import ( "crypto/subtle" "encoding/hex" "fmt" - "io/ioutil" "log" "net" + "os" "regexp" "sort" "strings" @@ -233,7 +233,7 @@ func (c *Client) SendMotd() { c.ReplyNicknamed("422", "MOTD File is missing") return } - motdText, err := ioutil.ReadFile(*motd) + motdText, err := os.ReadFile(*motd) if err != nil { log.Printf("can not read motd file %s: %v", *motd, err) c.ReplyNicknamed("422", "Error reading MOTD File") @@ -418,7 +418,7 @@ func (c *Client) Register(cmd string, cols []string) { c.Close() return } - contents, err := ioutil.ReadFile(*passwords) + contents, err := os.ReadFile(*passwords) if err != nil { log.Fatalf("can not read passwords file %s: %s", *passwords, err) return diff --git a/daemon_test.go b/daemon_test.go index bcd8326..db84013 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -18,7 +18,6 @@ along with this program. If not, see . package main import ( - "io/ioutil" "os" "strings" "testing" @@ -113,7 +112,7 @@ func TestRegistrationWorkflow(t *testing.T) { } func TestMotd(t *testing.T) { - fd, err := ioutil.TempFile("", "motd") + fd, err := os.CreateTemp("", "motd") if err != nil { t.Fatalf("can not create temporary file: %v", err) } diff --git a/goircd.go b/goircd.go index ddf8128..6168eaf 100644 --- a/goircd.go +++ b/goircd.go @@ -20,7 +20,6 @@ package main import ( "crypto/tls" "flag" - "io/ioutil" "log" "net" "os" @@ -144,7 +143,7 @@ func main() { log.Fatalln("can not read statedir", err) } for _, state := range states { - buf, err := ioutil.ReadFile(path.Join(state, StateTopicFilename)) + buf, err := os.ReadFile(path.Join(state, StateTopicFilename)) if err != nil { log.Fatalf( "can not read state %s/%s: %v", @@ -153,7 +152,7 @@ func main() { } room := RoomRegister(path.Base(state)) room.topic = strings.TrimRight(string(buf), "\n") - buf, err = ioutil.ReadFile(path.Join(state, StateKeyFilename)) + buf, err = os.ReadFile(path.Join(state, StateKeyFilename)) if err == nil { room.key = strings.TrimRight(string(buf), "\n") } else { @@ -178,7 +177,7 @@ func main() { } topicPath := path.Join(statePath, StateTopicFilename) - if err := ioutil.WriteFile( + if err := os.WriteFile( topicPath, []byte(event.topic+"\n"), permStateFile, @@ -188,7 +187,7 @@ func main() { } keyPath := path.Join(statePath, StateKeyFilename) - if err := ioutil.WriteFile( + if err := os.WriteFile( keyPath, []byte(event.key+"\n"), permStateFile, -- 2.52.0 From 5047260d46508031b42a5a1e55893884a4a44560 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 27 Dec 2022 17:36:50 +0300 Subject: [PATCH 05/16] Raise copyright years --- client.go | 2 +- client_test.go | 2 +- common_test.go | 2 +- daemon.go | 2 +- daemon_test.go | 2 +- goircd.go | 2 +- log.go | 2 +- room.go | 2 +- room_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client.go b/client.go index bd65d37..10ae383 100644 --- a/client.go +++ b/client.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/client_test.go b/client_test.go index bfc8679..a637dca 100644 --- a/client_test.go +++ b/client_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/common_test.go b/common_test.go index c9446ba..dfce78e 100644 --- a/common_test.go +++ b/common_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/daemon.go b/daemon.go index 07cfb2a..16f74c7 100644 --- a/daemon.go +++ b/daemon.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/daemon_test.go b/daemon_test.go index db84013..ef00dac 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/goircd.go b/goircd.go index 6168eaf..abfb001 100644 --- a/goircd.go +++ b/goircd.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/log.go b/log.go index fa24f30..5615d6c 100644 --- a/log.go +++ b/log.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/room.go b/room.go index e5aa05c..62478b7 100644 --- a/room.go +++ b/room.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 diff --git a/room_test.go b/room_test.go index aeac031..edb5c55 100644 --- a/room_test.go +++ b/room_test.go @@ -1,6 +1,6 @@ /* goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2022 Sergey Matveev +Copyright (C) 2014-2023 Sergey Matveev 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 -- 2.52.0 From e864070881a48595b4977b22aa0bf3b48a28d654 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Mar 2023 13:48:24 +0300 Subject: [PATCH 06/16] Excess loop --- client.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client.go b/client.go index 10ae383..e2bc5b2 100644 --- a/client.go +++ b/client.go @@ -188,10 +188,7 @@ func (c *Client) Reply(text string) { } func (c *Client) ReplyParts(code string, text ...string) { - parts := []string{code} - for _, t := range text { - parts = append(parts, t) - } + parts := append([]string{code}, text...) parts[len(parts)-1] = ":" + parts[len(parts)-1] c.Reply(strings.Join(parts, " ")) } -- 2.52.0 From 131834b937f2b4610659f08fe495170d9699e79e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Mar 2023 13:51:41 +0300 Subject: [PATCH 07/16] No redo in so simple project --- INSTALL | 2 +- all.do | 1 - clean.do | 1 - goircd.do | 2 -- 4 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 all.do delete mode 100644 clean.do delete mode 100644 goircd.do diff --git a/INSTALL b/INSTALL index f3d979c..1d33fb0 100644 --- a/INSTALL +++ b/INSTALL @@ -7,5 +7,5 @@ or manually: $ git clone git://git.cypherpunks.ru/goircd.git $ cd goircd - $ redo goircd # or just: go build + $ go build $ ./goircd -help diff --git a/all.do b/all.do deleted file mode 100644 index 5a5ad15..0000000 --- a/all.do +++ /dev/null @@ -1 +0,0 @@ -redo-ifchange goircd diff --git a/clean.do b/clean.do deleted file mode 100644 index 34df69f..0000000 --- a/clean.do +++ /dev/null @@ -1 +0,0 @@ -rm -f goircd diff --git a/goircd.do b/goircd.do deleted file mode 100644 index 0b53edd..0000000 --- a/goircd.do +++ /dev/null @@ -1,2 +0,0 @@ -redo-ifchange *.go -${GO:-go} build -o $3 -- 2.52.0 From 81a7749430ee4f6bfdc03a608444f2a51ee9ad94 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Mar 2023 13:52:27 +0300 Subject: [PATCH 08/16] VERSION is used nowhere --- .gitignore | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 599680d..508af6d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1 @@ -*.deb -*_tmp -goircd -VERSION +/goircd -- 2.52.0 From e8245bacf0a06987b1a2405601e52d852f7a0792 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Mar 2023 13:52:40 +0300 Subject: [PATCH 09/16] Modern Go uses "go install" --- INSTALL | 2 +- go.mod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/INSTALL b/INSTALL index 1d33fb0..0721565 100644 --- a/INSTALL +++ b/INSTALL @@ -1,7 +1,7 @@ goircd requires only standard Go's libraries and consists of single main package. You can install it like that: - $ go get go.cypherpunks.ru/goircd + $ go install go.cypherpunks.ru/goircd@latest or manually: diff --git a/go.mod b/go.mod index 31b5bd6..81844e6 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module go.cypherpunks.ru/goircd -go 1.12 +go 1.17 -- 2.52.0 From 0027046a8ffac919ba0f09f84ca004078ebb2ac1 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 23 Mar 2023 13:52:58 +0300 Subject: [PATCH 10/16] chan os.Signal should be buffered --- goircd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goircd.go b/goircd.go index abfb001..5289178 100644 --- a/goircd.go +++ b/goircd.go @@ -220,7 +220,7 @@ func main() { } log.Println("goircd", Version, "started") - needsShutdown := make(chan os.Signal, 0) + needsShutdown := make(chan os.Signal, 1) signal.Notify(needsShutdown, syscall.SIGTERM, syscall.SIGINT) go func() { <-needsShutdown -- 2.52.0 From ecd0a85ed4883aab1ca80c5843f3240a34bf675e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 14 Aug 2023 13:51:33 +0300 Subject: [PATCH 11/16] Use modern Go --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 81844e6..d730ce9 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module go.cypherpunks.ru/goircd -go 1.17 +go 1.20 -- 2.52.0 From 186b8f6146c0d958ed673bb2dd93c794de7b2590 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 8 Dec 2023 11:36:29 +0300 Subject: [PATCH 12/16] Unify copyright comment format --- client.go | 30 ++++++++++++++---------------- client_test.go | 30 ++++++++++++++---------------- common_test.go | 30 ++++++++++++++---------------- daemon.go | 30 ++++++++++++++---------------- daemon_test.go | 30 ++++++++++++++---------------- goircd.go | 30 ++++++++++++++---------------- log.go | 30 ++++++++++++++---------------- room.go | 30 ++++++++++++++---------------- room_test.go | 30 ++++++++++++++---------------- 9 files changed, 126 insertions(+), 144 deletions(-) diff --git a/client.go b/client.go index e2bc5b2..6cacbdb 100644 --- a/client.go +++ b/client.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/client_test.go b/client_test.go index a637dca..ca1b2bf 100644 --- a/client_test.go +++ b/client_test.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/common_test.go b/common_test.go index dfce78e..c6a2f3b 100644 --- a/common_test.go +++ b/common_test.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/daemon.go b/daemon.go index 16f74c7..d8d7316 100644 --- a/daemon.go +++ b/daemon.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/daemon_test.go b/daemon_test.go index ef00dac..b67fbd4 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/goircd.go b/goircd.go index 5289178..510c81c 100644 --- a/goircd.go +++ b/goircd.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/log.go b/log.go index 5615d6c..ad390fe 100644 --- a/log.go +++ b/log.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/room.go b/room.go index 62478b7..2ac5673 100644 --- a/room.go +++ b/room.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main diff --git a/room_test.go b/room_test.go index edb5c55..cbac7b7 100644 --- a/room_test.go +++ b/room_test.go @@ -1,19 +1,17 @@ -/* -goircd -- minimalistic simple Internet Relay Chat (IRC) server -Copyright (C) 2014-2023 Sergey Matveev - -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, version 3 of the License. - -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 . -*/ +// goircd -- minimalistic simple Internet Relay Chat (IRC) server +// Copyright (C) 2014-2024 Sergey Matveev +// +// 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, version 3 of the License. +// +// 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 . package main -- 2.52.0 From 41d98dd0af31a2ad0d0a9e9311d184bb7fc62e19 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 23 Jul 2024 15:03:52 +0300 Subject: [PATCH 13/16] Change namespace because of domain expiration --- INSTALL | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index 0721565..7f2b53d 100644 --- a/INSTALL +++ b/INSTALL @@ -1,11 +1,11 @@ goircd requires only standard Go's libraries and consists of single main package. You can install it like that: - $ go install go.cypherpunks.ru/goircd@latest + $ go install go.cypherpunks.su/goircd/v2@latest or manually: - $ git clone git://git.cypherpunks.ru/goircd.git + $ git clone git://git.cypherpunks.su/goircd.git $ cd goircd $ go build $ ./goircd -help diff --git a/go.mod b/go.mod index d730ce9..c457830 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module go.cypherpunks.ru/goircd +module go.cypherpunks.su/goircd/v2 go 1.20 -- 2.52.0 From e80d60ebda0a2ee0fa9c2cb88e1ba375ad697ef5 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 26 Dec 2024 12:50:07 +0300 Subject: [PATCH 14/16] Raise copyright years --- client.go | 2 +- client_test.go | 2 +- common_test.go | 2 +- daemon.go | 2 +- daemon_test.go | 2 +- goircd.go | 2 +- log.go | 2 +- room.go | 2 +- room_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client.go b/client.go index 6cacbdb..8891959 100644 --- a/client.go +++ b/client.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/client_test.go b/client_test.go index ca1b2bf..8f0be6e 100644 --- a/client_test.go +++ b/client_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/common_test.go b/common_test.go index c6a2f3b..a05c9be 100644 --- a/common_test.go +++ b/common_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/daemon.go b/daemon.go index d8d7316..1ca6930 100644 --- a/daemon.go +++ b/daemon.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/daemon_test.go b/daemon_test.go index b67fbd4..0706c1f 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/goircd.go b/goircd.go index 510c81c..c9a91d1 100644 --- a/goircd.go +++ b/goircd.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/log.go b/log.go index ad390fe..9daf0ce 100644 --- a/log.go +++ b/log.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/room.go b/room.go index 2ac5673..d48aa8f 100644 --- a/room.go +++ b/room.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 diff --git a/room_test.go b/room_test.go index cbac7b7..a151f2a 100644 --- a/room_test.go +++ b/room_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2024 Sergey Matveev +// Copyright (C) 2014-2025 Sergey Matveev // // 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 -- 2.52.0 From b429a5628ecbb90563a1583061d2822a56eddb42 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Tue, 30 Dec 2025 14:09:33 +0300 Subject: [PATCH 15/16] Raise copyright years --- client.go | 2 +- client_test.go | 2 +- common_test.go | 2 +- daemon.go | 2 +- daemon_test.go | 2 +- goircd.go | 2 +- log.go | 2 +- room.go | 2 +- room_test.go | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/client.go b/client.go index 8891959..55c3b37 100644 --- a/client.go +++ b/client.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/client_test.go b/client_test.go index 8f0be6e..d2ae2b1 100644 --- a/client_test.go +++ b/client_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/common_test.go b/common_test.go index a05c9be..a132ed8 100644 --- a/common_test.go +++ b/common_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/daemon.go b/daemon.go index 1ca6930..e272cf9 100644 --- a/daemon.go +++ b/daemon.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/daemon_test.go b/daemon_test.go index 0706c1f..fae4c55 100644 --- a/daemon_test.go +++ b/daemon_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/goircd.go b/goircd.go index c9a91d1..1d8ed8d 100644 --- a/goircd.go +++ b/goircd.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/log.go b/log.go index 9daf0ce..c16b890 100644 --- a/log.go +++ b/log.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/room.go b/room.go index d48aa8f..8bbb4ef 100644 --- a/room.go +++ b/room.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 diff --git a/room_test.go b/room_test.go index a151f2a..8ea1a7e 100644 --- a/room_test.go +++ b/room_test.go @@ -1,5 +1,5 @@ // goircd -- minimalistic simple Internet Relay Chat (IRC) server -// Copyright (C) 2014-2025 Sergey Matveev +// Copyright (C) 2014-2026 Sergey Matveev // // 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 -- 2.52.0 From 69af51b6bd4348e3613c5dd8e265068d84b8f2ec Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Mon, 23 Mar 2026 13:04:44 +0300 Subject: [PATCH 16/16] Move to stargrave.org --- INSTALL | 4 ++-- go.mod | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/INSTALL b/INSTALL index 7f2b53d..95aa57a 100644 --- a/INSTALL +++ b/INSTALL @@ -1,11 +1,11 @@ goircd requires only standard Go's libraries and consists of single main package. You can install it like that: - $ go install go.cypherpunks.su/goircd/v2@latest + $ go install go.stargrave.org/goircd/v3@latest or manually: - $ git clone git://git.cypherpunks.su/goircd.git + $ git clone git://git.stargrave.org/goircd.git $ cd goircd $ go build $ ./goircd -help diff --git a/go.mod b/go.mod index c457830..f4fcf2d 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module go.cypherpunks.su/goircd/v2 +module go.stargrave.org/goircd/v3 go 1.20 -- 2.52.0