- @bot.timer.add_once(10, m) {|m|
- @bot.join m.channel
- @bot.say m.channel, @bot.lang.get("insult") % m.sourcenick
- }
+ r = rand(10)
+ if r > 0
+ @bot.timer.add_once(r) {
+ @bot.join m.channel
+ @bot.say(m.channel, @bot.lang.get("insult") % m.sourcenick) if @bot.config['rejoin.insult']
+ }
+ else
+ @bot.join m.channel
+ @bot.say(m.channel, @bot.lang.get("insult") % m.sourcenick) if @bot.config['rejoin.insult']
+ end