mirror of https://github.com/nealey/spongy
Add support for network passwords
This commit is contained in:
parent
481d4199d3
commit
9b44355660
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue