1
0
Fork 0
forked from External/ergo

move password handling into a single file

This commit is contained in:
Jeremy Latt 2014-03-01 15:10:04 -08:00
parent b421971b61
commit 9aa7debbfe
4 changed files with 45 additions and 20 deletions

View file

@ -1,7 +1,6 @@
package irc
import (
"encoding/base64"
"encoding/json"
"log"
"os"
@ -9,10 +8,7 @@ import (
)
func decodePassword(password string) []byte {
if password == "" {
return nil
}
bytes, err := base64.StdEncoding.DecodeString(password)
bytes, err := DecodePassword(password)
if err != nil {
log.Fatal(err)
}