summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-12-07 09:12:04 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2010-12-07 09:12:04 +0100
commit8725939013d12b90a5138990bab18ccd20e82bdf (patch)
tree3cf965789ad7438c3886cb87246122de06c8cd57
parent15517f83c200f8fccb4ab7c05b8d18510e7e44ae (diff)
Greet plugin: bot should not greet himself
-rw-r--r--data/rbot/plugins/greet.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/greet.rb b/data/rbot/plugins/greet.rb
index 9d2292a0..36f9314c 100644
--- a/data/rbot/plugins/greet.rb
+++ b/data/rbot/plugins/greet.rb
@@ -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?