mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
Merge remote-tracking branch 'origin/master' into gcfg
Conflicts: ergonomadic.go irc/config.go irc/server.go
This commit is contained in:
commit
fa165a9d74
7 changed files with 91 additions and 55 deletions
|
|
@ -2,7 +2,6 @@ package irc
|
|||
|
||||
import (
|
||||
"code.google.com/p/gcfg"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"log"
|
||||
)
|
||||
|
|
@ -12,10 +11,7 @@ type PassConfig struct {
|
|||
}
|
||||
|
||||
func (conf *PassConfig) PasswordBytes() []byte {
|
||||
if conf.Password == "" {
|
||||
return nil
|
||||
}
|
||||
bytes, err := base64.StdEncoding.DecodeString(conf.Password)
|
||||
bytes, err := DecodePassword(conf.Password)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue