summaryrefslogtreecommitdiff
path: root/lib/rbot/core
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-03 14:06:15 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-08-03 14:06:15 +0000
commit6bf3094ac4ad043f00a3ef8cc2af48a8c23d114a (patch)
tree2729e8a8480a45b252f89b241250ef2b84dc3163 /lib/rbot/core
parent03bb46bbe744034141a3b612da4f0083719ff9a2 (diff)
Lots of fixes all around, in preparation for the new auth coremodule
Diffstat (limited to 'lib/rbot/core')
-rw-r--r--lib/rbot/core/config.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rbot/core/config.rb b/lib/rbot/core/config.rb
index 7eda780f..3099a00a 100644
--- a/lib/rbot/core/config.rb
+++ b/lib/rbot/core/config.rb
@@ -4,6 +4,10 @@
class ConfigModule < CoreBotModule
+ def save
+ @bot.config.save
+ end
+
def handle_list(m, params)
modules = []
if params[:module]
@@ -18,7 +22,7 @@ class ConfigModule < CoreBotModule
m.reply modules.join(", ")
end
else
- @bot.configitems.each_key do |key|
+ @bot.config.items.each_key do |key|
name = key.to_s.split('.').first
modules.push name unless modules.include?(name)
end
@@ -132,7 +136,7 @@ class ConfigModule < CoreBotModule
@bot.save
m.reply "rescanning ..."
@bot.rescan
- m.reply "done. #{@plugins.status(true)}"
+ m.reply "done. #{@bot.plugins.status(true)}"
end
def bot_nick(m, param)