From e8e1400168385dae6c8e6bca5c91bbb52db634dc Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 10 Jul 2011 19:20:10 -0700 Subject: [PATCH] goconfig no longer destroys conf when writing --- auth.go | 2 -- goconfig | 2 +- rbot.go | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/auth.go b/auth.go index e322651..0336863 100644 --- a/auth.go +++ b/auth.go @@ -174,7 +174,5 @@ func updateAuth() os.Error { if err := auth.WriteFile(authFile, 0644, ""); err != nil { return err } - // config.WriteFile destroys the config, so - readAuth() return nil } diff --git a/goconfig b/goconfig index 5e5884d..aab4342 160000 --- a/goconfig +++ b/goconfig @@ -1 +1 @@ -Subproject commit 5e5884da67a5590d4dda8fced3c80eadb273a38c +Subproject commit aab434234dc2013280d07741da59ace459c4652d diff --git a/rbot.go b/rbot.go index 9ee852f..ac5c617 100644 --- a/rbot.go +++ b/rbot.go @@ -127,8 +127,6 @@ func updateConf(section, option, value string) { if err := conf.WriteFile(confFile, 0644, ""); err != nil { panic("Error while writing to " + confFile) } - // config.WriteFile destroys the config, so - readConf() } func identd(port string) {