summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorMatthias H <apoc@sixserv.org>2014-03-06 11:06:57 +0100
committerMatthias H <apoc@sixserv.org>2014-03-06 11:06:57 +0100
commitd642da9348926e418655685b92f0b68c11b710f1 (patch)
tree0d3577c205d622b219c8e7026592515a44fee084 /lib/rbot/ircbot.rb
parenta3f8a4e5568b1fca793b9345287be40c000f6024 (diff)
[config] adds a new param store_default
Creates a new option to store the default at first run. This fixes the problem that random auth passwords are not kept, it also allows us to always store the core.db config value.
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 8b827f15..f74b1530 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -435,7 +435,7 @@ class Bot
},
:desc => "Percentage of IRC penalty to consider when sending messages to prevent being disconnected for excess flood. Set to 0 to disable penalty control.")
Config.register Config::StringValue.new('core.db',
- :default => default_db,
+ :default => default_db, :store_default => true,
:wizard => true,
:validate => Proc.new { |v| Registry::formats.include? v },
:requires_restart => true,