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")
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']
}