mirror of https://github.com/fluffle/goirc
goconfig no longer destroys conf when writing
This commit is contained in:
parent
ae1b600a2e
commit
e8e1400168
2
auth.go
2
auth.go
|
@ -174,7 +174,5 @@ func updateAuth() os.Error {
|
||||||
if err := auth.WriteFile(authFile, 0644, ""); err != nil {
|
if err := auth.WriteFile(authFile, 0644, ""); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// config.WriteFile destroys the config, so
|
|
||||||
readAuth()
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
2
goconfig
2
goconfig
|
@ -1 +1 @@
|
||||||
Subproject commit 5e5884da67a5590d4dda8fced3c80eadb273a38c
|
Subproject commit aab434234dc2013280d07741da59ace459c4652d
|
2
rbot.go
2
rbot.go
|
@ -127,8 +127,6 @@ func updateConf(section, option, value string) {
|
||||||
if err := conf.WriteFile(confFile, 0644, ""); err != nil {
|
if err := conf.WriteFile(confFile, 0644, ""); err != nil {
|
||||||
panic("Error while writing to " + confFile)
|
panic("Error while writing to " + confFile)
|
||||||
}
|
}
|
||||||
// config.WriteFile destroys the config, so
|
|
||||||
readConf()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func identd(port string) {
|
func identd(port string) {
|
||||||
|
|
Loading…
Reference in New Issue