diff options
author | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-16 01:18:13 +0000 |
---|---|---|
committer | Tom Gilbert <tom@linuxbrit.co.uk> | 2005-07-16 01:18:13 +0000 |
commit | a08b4def5c276df964ae2a8d9c3f661593d757e6 (patch) | |
tree | cd563b11ab095bd364036d14bc28fb5fb4c065a8 /rbot/plugins/autorejoin.rb | |
parent | 71e16adb8a62a78fc1e8cdcc6776b6cd84fbe758 (diff) |
various fixes by me, plus most of Rene's patch (#1).
Diffstat (limited to 'rbot/plugins/autorejoin.rb')
-rw-r--r-- | rbot/plugins/autorejoin.rb | 6 |
1 files changed, 4 insertions, 2 deletions
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 |