From 445b4b7f144edb862f7744eae4eeddb5f4b27038 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 27 Mar 2008 21:34:37 +0100 Subject: * handle invites properly --- lib/rbot/core/basics.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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] -- cgit v1.2.3