Closed
Bug 789853
Opened 12 years ago
Closed 12 years ago
Improper brackets for /leave params
Categories
(Other Applications :: ChatZilla, defect)
Other Applications
ChatZilla
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: dsarratt, Assigned: dsarratt)
Details
(Whiteboard: [cz-0.9.89])
Attachments
(1 file, 1 obsolete file)
1.21 KB,
patch
|
bugzilla-mozilla-20000923
:
review+
|
Details | Diff | 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.
Assignee | ||
Updated•12 years ago
|
Severity: normal → trivial
Assignee | ||
Comment 1•12 years ago
|
||
It seems you can't upload a patch with the initial bug filing.
Attachment #659621 -
Attachment is obsolete: true
Comment 2•12 years ago
|
||
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
Comment 3•12 years ago
|
||
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
Assignee | ||
Updated•12 years ago
|
Attachment #659621 -
Flags: review?(silver)
Assignee | ||
Updated•12 years ago
|
Attachment #659621 -
Flags: review?(silver)
Assignee | ||
Updated•12 years ago
|
Attachment #659622 -
Flags: review?(silver)
Assignee | ||
Comment 4•12 years ago
|
||
No, I did not just request a review on the wrong file.
<.<
Comment 5•12 years ago
|
||
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+
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Whiteboard: [cz-0.9.89]
Comment 7•12 years ago
|
||
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.
Description
•