X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=client.go;h=bd65d37915e99f02417a44182535db6fd5ec2180;hp=0bfc5371669bd5ec9824cd1cf217b6c03090ad4e;hb=6f9d7fae374e5ada6c33f585db748f23fbc49f91;hpb=eaf030e5c88acd8658e8990f4449486f7e2dbc82 diff --git a/client.go b/client.go index 0bfc537..bd65d37 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 @@ -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