diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-12-07 09:12:04 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-12-07 09:12:04 +0100 |
commit | 8725939013d12b90a5138990bab18ccd20e82bdf (patch) | |
tree | 3cf965789ad7438c3886cb87246122de06c8cd57 /data/rbot/plugins | |
parent | 15517f83c200f8fccb4ab7c05b8d18510e7e44ae (diff) |
Greet plugin: bot should not greet himself
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r-- | data/rbot/plugins/greet.rb | 1 |
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? |