/*
goircd -- minimalistic simple Internet Relay Chat (IRC) server
-Copyright (C) 2014-2021 Sergey Matveev <stargrave@stargrave.org>
+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
"crypto/subtle"
"encoding/hex"
"fmt"
- "io/ioutil"
"log"
"net"
+ "os"
"regexp"
"sort"
"strings"
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")
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