diff options
author | 2008-06-06 01:38:08 +0000 | |
---|---|---|
committer | 2008-06-06 01:38:08 +0000 | |
commit | 7dc73ddb9afcb144a9c7fc8a2222c8500871349f (patch) | |
tree | 2da69eb245ccedb68f7baa769a5104eb3e4ca070 | |
parent | Allow uppercase bug, as well as no space between bug text and the number. (diff) | |
download | rbot-bugzilla-7dc73ddb9afcb144a9c7fc8a2222c8500871349f.tar.gz rbot-bugzilla-7dc73ddb9afcb144a9c7fc8a2222c8500871349f.tar.bz2 rbot-bugzilla-7dc73ddb9afcb144a9c7fc8a2222c8500871349f.zip |
Only use the listen functionality if the mesage comes from specific locations.
-rw-r--r-- | bugzilla.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |