summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-27 21:34:37 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-03-27 21:34:37 +0100
commit445b4b7f144edb862f7744eae4eeddb5f4b27038 (patch)
tree31f1a02f62c4f54882377634e0787dcc5370b17d /lib/rbot
parent63eaa1da3ba602e55458ad2228b8ecc9db045b04 (diff)
* handle invites properly
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]