]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Greet plugin: bot should not greet himself
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 7 Dec 2010 08:12:04 +0000 (09:12 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Tue, 7 Dec 2010 08:12:04 +0000 (09:12 +0100)
data/rbot/plugins/greet.rb

index 9d2292a04a84320df6e0efa6540b068fce75abda..36f9314cb16a751fea9c3f20f3b28c5a5a807c59 100644 (file)
@@ -24,6 +24,7 @@ class GreetPlugin < Plugin
 
 
   def join(m)
+    return if m.source == @bot.myself
     return unless @bot.config['greet.channels'].include?(m.channel.to_s)
 
     greeting = if @bot.config['greet.messages'].empty?