Closed
Bug 568439
Opened 15 years ago
Closed 12 years ago
Can't /part multiple channels simultaneously
Categories
(Other Applications Graveyard :: ChatZilla, defect)
Other Applications Graveyard
ChatZilla
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: auscompgeek, Assigned: Gijs)
Details
(Whiteboard: [cz-0.9.91])
Attachments
(2 files, 1 obsolete file)
|
6.65 KB,
patch
|
bugzilla-mozilla-20000923
:
review+
|
Details | Diff | Splinter Review |
|
1.25 KB,
patch
|
bugzilla-mozilla-20000923
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a5pre) Gecko/20100524 BetterPrivacy-1.46 Minefield/3.7a5pre AutoPager/0.6.1.6 AutoPager/0.6.1.6
Build Identifier: ChatZilla 0.9.86-rdmsoft [XULRunner 1.9.3a5pre/20100524030807]
It is impossible to part multiple channels in the one command, without using /raw.
Reproducible: Always
Steps to Reproduce:
1. Join multiple channels.
2. Try to /part those channels, separating them using commas, like /join.
Actual Results:
ChatZilla says you aren't in the channel #qa,#testday,... (or whatever channels you tried to /part).
Expected Results:
ChatZilla should send the part message to the server, closing the channels' views if specified.
Comment 1•15 years ago
|
||
It reproduces here. Status is being set to NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
| Reporter | ||
Updated•15 years ago
|
OS: Windows XP → All
Hardware: x86 → All
Version: unspecified → Trunk
| Assignee | ||
Comment 2•12 years ago
|
||
This seems to work.
Attachment #811494 -
Flags: review?(bugzilla-mozilla-20020327)
| Assignee | ||
Updated•12 years ago
|
Assignee: rginda → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment 3•12 years ago
|
||
Comment on attachment 811494 [details] [diff] [review]
/part should work on multiple channels,
Review of attachment 811494 [details] [diff] [review]:
-----------------------------------------------------------------
Seems generally okay, though the error-case (breaking out of the loop) is not explained in the comments.
::: xul/content/commands.js
@@ +2491,5 @@
> +
> + var commaPosition = e.channelName.indexOf(",");
> +
> + // If there's a comma in the middle of the channel name somewhere:
> + if (commaPosition > 0 && commaPosition != e.channelName.length - 1)
This seems like a load of unnecessary conditioning to me. Why not just split e.channelName, iterate, skipping blanks?
Attachment #811494 -
Flags: review?(bugzilla-mozilla-20020327) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
I think this is what you meant wrt the comment, but I'll just re-request review to be sure... :-)
Attachment #813291 -
Flags: review?(bugzilla-mozilla-20020327)
| Assignee | ||
Updated•12 years ago
|
Attachment #811494 -
Attachment is obsolete: true
Comment 5•12 years ago
|
||
Comment on attachment 813291 [details] [diff] [review]
/part should work on multiple channels,
Review of attachment 813291 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks, that looks better. It's still a bit weird, if you do "/leave #chatzilla,bye!" on #addons, you'll leave #chatzilla (with no message) and #addons (with "bye!"), but trying to support comma-lists and optional channel names is confusing at best.
Attachment #813291 -
Flags: review?(bugzilla-mozilla-20020327) → review+
| Assignee | ||
Comment 6•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.91]
| Assignee | ||
Comment 7•12 years ago
|
||
Someone on IRC pointed out I broke something. Oops.
Attachment #815755 -
Flags: review?(bugzilla-mozilla-20020327)
Comment 8•12 years ago
|
||
Comment on attachment 815755 [details] [diff] [review]
unbreak the context menu 'leave' option,
Review of attachment 815755 [details] [diff] [review]:
-----------------------------------------------------------------
::: xul/content/commands.js
@@ +2491,5 @@
> return;
> }
>
> + if (!e.hasOwnProperty("channelName") && e.channel)
> + e.channelName = e.channel.unicodeName;
It kind of feels bad going from a channel object to a name and then back again, but it should be safe.
Attachment #815755 -
Flags: review?(bugzilla-mozilla-20020327) → review+
| Assignee | ||
Comment 9•12 years ago
|
||
(In reply to James Ross from comment #8)
> Comment on attachment 815755 [details] [diff] [review]
> unbreak the context menu 'leave' option,
>
> Review of attachment 815755 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: xul/content/commands.js
> @@ +2491,5 @@
> > return;
> > }
> >
> > + if (!e.hasOwnProperty("channelName") && e.channel)
> > + e.channelName = e.channel.unicodeName;
>
> It kind of feels bad going from a channel object to a name and then back
> again, but it should be safe.
https://hg.mozilla.org/chatzilla/rev/25a4bc20b148
Updated•8 months ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•