Closed Bug 123713 Opened 23 years ago Closed 23 years ago

[HAVE FIX] Various Karma module changes

Categories

(Webtools Graveyard :: Mozbot, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ian, Assigned: ian)

References

Details

Attachments

(1 file, 2 obsolete files)

Some Karma commands clash with the Infobot query? syntax.
At the same time, we should add a way to get someone's individual rank (as well
as their score), prevent things likes "----" getting counted, and make people
drop off the list if they hit 0 karma.
Status: NEW → ASSIGNED
Keywords: review
Summary: Change Karma commands not to clash with Infobot → [HAVE FIX] Various Karma module changes
@@ -85,6 +85,9 @@
@@ -93,6 +96,9 @@

seem to imply that code reuse could be implemented.

+            'rank' => 'Find someone\'s karma level. Omit the victim name to 
get a complete listing (long). Syntax: rank victim',

[victim], it's optional, you said so yourself in the previous sentence.
Attached patch Patch version 1.1 (obsolete) — Splinter Review
Ok, I changed the help line a little.

The code reuse idea is good, but unfortunately it would be hard to massage the
code into using the same system for the global list as the personal list while
still having an easy way to change the global list from the vars command.
Believe me, I tried.
Attachment #68045 - Attachment is obsolete: true
Blocks: 123692
Improves the help line some more.
Attachment #68105 - Attachment is obsolete: true
While I'm at it, the if statement on line 141 should be negated to read:

           if (not defined($karma)) {
               $self->say($event, "You have not given $who any karma.");
           } else {
               $self->say($event, "You have given $who $karma points of karma.");
           }
Target Milestone: --- → Mozbot 2.2
checked in (kerz gave me r=kerz on IRC)
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
QA Contact: timeless → kerz
QA Contact: kerz → mozbot
Verified Fixed.
Status: RESOLVED → VERIFIED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: