]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Reset configuration changed status after saving successfully
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 14 Feb 2007 22:04:38 +0000 (22:04 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 14 Feb 2007 22:04:38 +0000 (22:04 +0000)
lib/rbot/config.rb

index fd745397a9470fd07d5e0bca9739a00bbaa4b8f0..2495a307331432faef7f28645c45727fb52b06f0 100644 (file)
@@ -269,6 +269,7 @@ module Irc
         debug "Officializing conf.yaml ..."
         File.rename("#{@bot.botclass}/conf.yaml.new",
                     "#{@bot.botclass}/conf.yaml")
+        @changed = false
       rescue => e
         error "failed to write configuration file conf.yaml! #{$!}"
         error "#{e.class}: #{e}"