From 7dc73ddb9afcb144a9c7fc8a2222c8500871349f Mon Sep 17 00:00:00 2001 From: "Robin H. Johnson" Date: Fri, 6 Jun 2008 01:38:08 +0000 Subject: Only use the listen functionality if the mesage comes from specific locations. --- bugzilla.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/bugzilla.rb b/bugzilla.rb index 350f5b5..904870b 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -420,6 +420,7 @@ class BugzillaPlugin < Plugin # to the bot. def listen(m) return if m.address? + return unless lurk?(m) return if m.message !~ /\bbug(?:\b.*\b)?#?([0-9]+)/i bugno = $1 -- cgit v1.2.3-65-gdbad