spongy

A Unixy IRC client
git clone https://git.woozle.org/neale/spongy.git

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
M spongy/network.go
+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]