]> Cypherpunks.ru repositories - goircd.git/blobdiff - client.go
Unify copyright comment format
[goircd.git] / client.go
index bd65d37915e99f02417a44182535db6fd5ec2180..6cacbdb81ac27fa248ca3aa474b30ed602aeaacc 100644 (file)
--- a/client.go
+++ b/client.go
@@ -1,19 +1,17 @@
-/*
-goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2022 Sergey Matveev <stargrave@stargrave.org>
-
-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 <http://www.gnu.org/licenses/>.
-*/
+// goircd -- minimalistic simple Internet Relay Chat (IRC) server
+// Copyright (C) 2014-2024 Sergey Matveev <stargrave@stargrave.org>
+//
+// 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 <http://www.gnu.org/licenses/>.
 
 package main
 
@@ -188,10 +186,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, " "))
 }