summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/autorejoin.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/data/rbot/plugins/autorejoin.rb b/data/rbot/plugins/autorejoin.rb
index 14a2f29c..330404cd 100644
--- a/data/rbot/plugins/autorejoin.rb
+++ b/data/rbot/plugins/autorejoin.rb
@@ -8,15 +8,17 @@ class AutoRejoinPlugin < Plugin
end
def kick(m)
+ password = m.channel.mode[:k].value
+
if m.address?
r = rand(10)
if r > 0
@bot.timer.add_once(r) {
- @bot.join m.channel
+ @bot.join m.channel, password
@bot.say(m.channel, @bot.lang.get("insult") % m.sourcenick) if @bot.config['rejoin.insult']
}
else
- @bot.join m.channel
+ @bot.join m.channel, password
@bot.say(m.channel, @bot.lang.get("insult") % m.sourcenick) if @bot.config['rejoin.insult']
end
end