From a08b4def5c276df964ae2a8d9c3f661593d757e6 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Sat, 16 Jul 2005 01:18:13 +0000 Subject: various fixes by me, plus most of Rene's patch (#1). --- rbot/plugins/autorejoin.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rbot/plugins/autorejoin.rb') diff --git a/rbot/plugins/autorejoin.rb b/rbot/plugins/autorejoin.rb index 03118f85..b5dd1ee1 100644 --- a/rbot/plugins/autorejoin.rb +++ b/rbot/plugins/autorejoin.rb @@ -4,8 +4,10 @@ class AutoRejoinPlugin < Plugin end def kick(m) if m.address? - @bot.join m.channel - @bot.say m.channel, @bot.lang.get("insult") % m.sourcenick + @bot.timer.add_onceu(10, m) {|m| + @bot.join m.channel + @bot.say m.channel, @bot.lang.get("insult") % m.sourcenick + } end end end -- cgit v1.2.3