summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/salut.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/salut.rb')
-rw-r--r--data/rbot/plugins/salut.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/salut.rb b/data/rbot/plugins/salut.rb
index 4582e554..a5f94675 100644
--- a/data/rbot/plugins/salut.rb
+++ b/data/rbot/plugins/salut.rb
@@ -80,6 +80,7 @@ class SalutPlugin < Plugin
end
def listen(m)
+ return unless @match
return unless m.kind_of?(PrivMessage)
to_me = m.address? || m.message =~ /#{Regexp.escape(@bot.nick)}/i
if @bot.config['salut.address_only']