]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - data/rbot/plugins/greet.rb
refactor: wordlist shouldn't use bot singleton #35
[user/henk/code/ruby/rbot.git] / 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?