Add support for network passwords

This commit is contained in:
Neale Pickett 2016-01-28 16:08:40 +00:00
parent 481d4199d3
commit 9b44355660
1 changed files with 6 additions and 0 deletions

View File

@ -236,6 +236,12 @@ func (nw *Network) ConnectToNextServer() bool {
func (nw *Network) login() {
var name string
passwd, err := ReadLines(path.Join(nw.basePath, "passwd"))
if err == nil {
nw.outq <- "PASS " + passwd[0]
}
names, err := ReadLines(path.Join(nw.basePath, "name"))
if err == nil {
name = names[0]