From 9b443556605706986b2e1f1735d0d4ac344e07a4 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Thu, 28 Jan 2016 16:08:40 +0000 Subject: [PATCH] Add support for network passwords --- spongy/network.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spongy/network.go b/spongy/network.go index 0b6a33c..bd895c7 100644 --- a/spongy/network.go +++ b/spongy/network.go @@ -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]