diff options
author | 2008-06-06 01:48:57 +0000 | |
---|---|---|
committer | 2008-06-06 01:48:57 +0000 | |
commit | 7a47759354672f462b83633bf3b58e304d5e89ee (patch) | |
tree | 88f93fa48fa3ed5eba010a53d7b072f50a8b0057 | |
parent | Handle some cases that have the parameters reversed. (diff) | |
download | rbot-bugzilla-7a47759354672f462b83633bf3b58e304d5e89ee.tar.gz rbot-bugzilla-7a47759354672f462b83633bf3b58e304d5e89ee.tar.bz2 rbot-bugzilla-7a47759354672f462b83633bf3b58e304d5e89ee.zip |
Factor out defaults usage in bug func.
-rw-r--r-- | bugzilla.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bugzilla.rb b/bugzilla.rb index 3eb28a7..82f6235 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -453,8 +453,9 @@ class BugzillaPlugin < Plugin if params[:zilla] and bugno check_zilla(params[:zilla]) m.reply @zillas[params[:zilla]].summary(bugno) - elsif @defaults.key?(m.replyto) and @defaults[m.replyto][:zilla] and @zillas[@defaults[m.replyto][:zilla]] - m.reply @zillas[@defaults[m.replyto][:zilla]].summary(bugno) + elsif get_zilla(m) + zilla = get_zilla(m) + m.reply zilla.summary(bugno) else m.reply "Wrong parameters, see 'help bug' for help." end |