Closed Bug 178313 Opened 22 years ago Closed 21 years ago

/names command fails to show output for other channels

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla-mozilla-20000923, Assigned: rginda)

References

()

Details

(Whiteboard: cz-patch)

Attachments

(1 file, 4 obsolete files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021029 Phoenix/0.4

When using the /names command, the returned output from the server fails to be
displayed unless it's for the current channel, or you've done "/names" in the
channel in question.

Reproducible: Always

Steps to Reproduce:
1. Join the IRC server specified (though any should do).
2. Join two channels (suggested one: #testing1 and #testing2).
3. In #testing1, do the command "/names #testing2".
4. Then switch to #testing2, and do "/names".
5. Switch back to #testing1, and do "/names #testing2" again.
Actual Results:  
First "/names #testing2" seems to do nothing.
Second "/names #testing2" shows user list for #testing2, albeit in the wrong tab. :)

Expected Results:  
Both times should show the output, preferably always in the current tab.
What appears to happening here is that chatzilla tries to send the /names output
to the channel you're checking, and if that view doesn't exist, it just goes away.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
Hardware: PC → All
Attached patch patch (obsolete) — Splinter Review
Removed unnecessary CIRCChannel.pendingNamesReply.
Attachment #117296 - Flags: review?(rginda)
Comment on attachment 117296 [details] [diff] [review]
patch

pendingNamesReply is not useless.  That's what keeps the NAMES messages sent in
response to a JOIN from showing up in the message window.

With this patch, join a channel that has users, and you'll see something
like...

[INFO]	Channel view for “#chatzilla” opened.
-->|	YOU have joined #chatzilla
=-=	Topic for #chatzilla is “Welcome to #chatzilla. *Questions about
ChatZilla only, please. Click <irc://undernet/chatzone> for general chat.* For
bug fixes and new features, upgrade to version 0.8.24 at
<http://www.hacksrus.com/~ginda/chatzilla/>”
=-=	Topic for #chatzilla was set by rginda on Fri Mar 07 2003 15:42:38
GMT-0800 (PST)
===	rginda_ Silver juna_work @ssieb_work Lissyx @rginda moj Isomer
@ssieb_home @killer
---	End of /NAMES list.
Attachment #117296 - Flags: review?(rginda) → review-
Attached patch patch v2 (obsolete) — Splinter Review
Attachment #117348 - Flags: review?(rginda)
Attached patch patch v3 (obsolete) — Splinter Review
The previous patch doesn't consider multibyte channel names.
Attachment #117296 - Attachment is obsolete: true
Attachment #117348 - Attachment is obsolete: true
Attached patch patch v4 (obsolete) — Splinter Review
Added the channel name before the nicknames.
Removed "End of /NAMES list" message. It's meaningless.
Attachment #117420 - Attachment is obsolete: true
Attachment #117758 - Flags: review?(rginda)
I don't think it's meaningless.  Most irc clients show it, and it lets the user
know the server is done sending names.  If the channel has many users, there
will be multiple names replies.  If the server load is high, there might be a
delay between the names replies.  The end of names message lets you know it's
all done.  Other than that the patch looks great.
Attached patch patch v5Splinter Review
Restored "End of /NAMES list" message and added the channel name
before it.
Attachment #117758 - Attachment is obsolete: true
Attachment #117774 - Flags: review?(rginda)
Comment on attachment 117774 [details] [diff] [review]
patch v5

r=rginda
Attachment #117774 - Flags: review?(rginda) → review+
Whiteboard: cz-patch
The patch was checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Attachment #117348 - Flags: review?(rginda)
Attachment #117758 - Flags: review?(rginda)
Product: Core → Other Applications
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: