summaryrefslogtreecommitdiff
path: root/lib/rbot/plugins/autorejoin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/plugins/autorejoin.rb')
-rw-r--r--lib/rbot/plugins/autorejoin.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/rbot/plugins/autorejoin.rb b/lib/rbot/plugins/autorejoin.rb
deleted file mode 100644
index aba46507..00000000
--- a/lib/rbot/plugins/autorejoin.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-class AutoRejoinPlugin < Plugin
- def help(plugin, topic="")
- "performs an automatic rejoin if the bot is kicked from a channel"
- end
- def kick(m)
- if m.address?
- @bot.timer.add_once(10, m) {|m|
- @bot.join m.channel
- @bot.say m.channel, @bot.lang.get("insult") % m.sourcenick
- }
- end
- end
-end
-
-plugin = AutoRejoinPlugin.new
-plugin.register("autorejoin")