]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/autorejoin.rb
script plugin: use m.okay
[user/henk/code/ruby/rbot.git] / data / rbot / plugins / autorejoin.rb
index a8d659580db3cec3eeca68beacd6f00fc795d408..14a2f29c77b0723ab19c96404815384ba7b3c4ba 100644 (file)
@@ -1,5 +1,5 @@
 class AutoRejoinPlugin < Plugin
-  BotConfig.register BotConfigBooleanValue.new('rejoin.insult',
+  Config.register Config::BooleanValue.new('rejoin.insult',
     :default => true,
     :desc => "Determines if the bot will insult whoever kicked it, after rejoin")
 
@@ -11,7 +11,7 @@ class AutoRejoinPlugin < Plugin
     if m.address?
       r = rand(10)
       if r > 0
-       @bot.timer.add_once(r, m) {|m|
+       @bot.timer.add_once(r) {
          @bot.join m.channel
          @bot.say(m.channel, @bot.lang.get("insult") % m.sourcenick) if @bot.config['rejoin.insult']
        }