aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bugzilla.rb')
-rw-r--r--bugzilla.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 4c0cbd0..d22cf44 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -465,8 +465,9 @@ class BugzillaPlugin < Plugin
def listen(m)
return if m.address?
return unless lurk?(m)
- return if m.message !~ /\bbug(?:\b[[:space:]]*\b)?#?([0-9]+)/i
+ return if m.message !~ /\bbug(?:[[:space:]]*)?#?([0-9]+)/i
bugno = $1
+ bugno.gsub!(/^#/,'')
zilla = get_zilla(m)
m.reply zilla.summary(bugno)
end
@@ -488,6 +489,7 @@ class BugzillaPlugin < Plugin
def bug(m, params)
begin
bugno = params[:number].chomp("#")
+ bugno.gsub!(/^#/,'')
if params[:number].nil? and params[:zilla]
params[:number] = params[:zilla]