summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/basics.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rbot/core/basics.rb b/lib/rbot/core/basics.rb
index 7a5d82c1..2db2bcd8 100644
--- a/lib/rbot/core/basics.rb
+++ b/lib/rbot/core/basics.rb
@@ -29,6 +29,12 @@ class BasicsModule < CoreBotModule
end
end
+ def invite(m)
+ if @bot.auth.allow?(:"basics::move::join", m.source, m.source)
+ @bot.join m.channel
+ end
+ end
+
def bot_part(m, param)
if param[:chan]
@bot.part param[:chan]