From 5ef7f7f853215ee2bf64a7b665c6f696b7bdf4b1 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 14 Feb 2007 22:04:38 +0000 Subject: Reset configuration changed status after saving successfully --- lib/rbot/config.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rbot') diff --git a/lib/rbot/config.rb b/lib/rbot/config.rb index fd745397..2495a307 100644 --- a/lib/rbot/config.rb +++ b/lib/rbot/config.rb @@ -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}" -- cgit v1.2.3