/*
goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2022 Sergey Matveev <stargrave@stargrave.org>
+Copyright (C) 2014-2023 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
}
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, " "))
}