Closed Bug 789853 Opened 12 years ago Closed 12 years ago

Improper brackets for /leave params

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dsarratt, Assigned: dsarratt)

Details

(Whiteboard: [cz-0.9.89])

Attachments

(1 file, 1 obsolete file)

Attached patch 1634.patch (obsolete) — Splinter Review
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:14.0) Gecko/20100101 Firefox/14.0.1 Build ID: 20120713134347 Steps to reproduce: The params for the /leave command are listed as [USAGE] leave [<channel-name> [<reason>]] However it is possible to specify a reason without first specifying a channel-name, so the proper listing should be [USAGE] leave [<channel-name>] [<reason>] Patch attached, it's just a single line.
Severity: normal → trivial
It seems you can't upload a patch with the initial bug filing.
Attachment #659621 - Attachment is obsolete: true
Comment on attachment 659621 [details] [diff] [review] 1634.patch In reply to comment #1: You can tell Bugzilla later on that it is a patch. Just be sure to tick the appropriate checkbox. But no problem, you found another solution. ;-)
Attachment #659621 - Attachment is patch: true
P.S. That patch looks OK to me, but in order to make it part of the code, it needs a review from a ChatZilla owner or peer. I suggest that you ask one from James Ross ("Silver") who already reviewed your related code fix for bug 682682.
Assignee: rginda → dsarratt
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #659621 - Flags: review?(silver)
Attachment #659621 - Flags: review?(silver)
Attachment #659622 - Flags: review?(silver)
No, I did not just request a review on the wrong file. <.<
Comment on attachment 659622 [details] [diff] [review] Fix param brackets Review of attachment 659622 [details] [diff] [review]: ----------------------------------------------------------------- ::: locales/en-US/chrome/chatzilla.properties @@ +489,4 @@ > > cmd.leave.format = Leave $channelName > cmd.leave.label = &Leave > +cmd.leave.params = [<channel-name>] [<reason>] I don't believe the CommandManager will ever parse this as just having a reason, though I could be wrong, but it looks like the code in the command always validates the <channel-name> and merges it into the <reason> if it lacks a valid channel prefix (or, apparently, matches a channel name without prefix - something I'd forgotten about), so this is okay.
Attachment #659622 - Flags: review?(silver) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.89]
Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/18.0 Firefox/18.0 SeaMonkey/2.15a1 ID:20120919171640 c-c:8fdbcb519211 m-c:0c8ac138706e The Tinderbox waterfall designates this build as the first one started after comment #6. After installing this hourly under /usr/local, starting it, browsing to file:///usr/local/seamonkey/distribution/extensions/ and clicking {59c81df5-4b7a-477b-912d-4e0fdf64e5f2}.xpi then restarting (to make sure the new ChatZilla build will be used) Answer to "/help leave" has as its first line: [USAGE] leave [<channel-name>] [<reason>] => VERIFIED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: