- commit
- 9b44355
- parent
- 481d419
- author
- Neale Pickett
- date
- 2016-01-28 09:08:40 -0700 MST
Add support for network passwords
1 files changed,
+6,
-0
+6,
-0
1@@ -236,6 +236,12 @@ func (nw *Network) ConnectToNextServer() bool {
2 func (nw *Network) login() {
3 var name string
4
5+ passwd, err := ReadLines(path.Join(nw.basePath, "passwd"))
6+ if err == nil {
7+ nw.outq <- "PASS " + passwd[0]
8+ }
9+
10+
11 names, err := ReadLines(path.Join(nw.basePath, "name"))
12 if err == nil {
13 name = names[0]