From 8725939013d12b90a5138990bab18ccd20e82bdf Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 7 Dec 2010 09:12:04 +0100 Subject: Greet plugin: bot should not greet himself --- data/rbot/plugins/greet.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data/rbot') 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? -- cgit v1.2.3