]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/core/config.rb
Fix small typo in basics core botmodule
[user/henk/code/ruby/rbot.git] / lib / rbot / core / config.rb
index 3099a00a79aa2d5d50375032f2cf96ce56fa17f0..dfbaaab66d05fb5da16c4ba3ac2d202aff60f59c 100644 (file)
@@ -89,7 +89,7 @@ class ConfigModule < CoreBotModule
       m.reply "no such config key #{key}"\r
       return\r
     end\r
-    unless @bot.config.items[key].class <= BotConfigArrayValue\r
+    unless @bot.config.items[key].kind_of?(BotConfigArrayValue)\r
       m.reply "config key #{key} is not an array"\r
       return\r
     end\r
@@ -111,7 +111,7 @@ class ConfigModule < CoreBotModule
       m.reply "no such config key #{key}"\r
       return\r
     end\r
-    unless @bot.config.items[key].class <= BotConfigArrayValue\r
+    unless @bot.config.items[key].kind_of?(BotConfigArrayValue)\r
       m.reply "config key #{key} is not an array"\r
       return\r
     end\r
@@ -162,7 +162,7 @@ class ConfigModule < CoreBotModule
     m.reply help(params[:topic])\r
   end\r
 \r
-  def help(topic="")\r
+  def help(plugin, topic="")\r
     case topic\r
     when "list"\r
       "config list => list configuration modules, config list <module> => list configuration keys for module <module>"\r