Closed
Bug 369539
Opened 19 years ago
Closed 19 years ago
ChatZilla counts users outside the channel in its user count
Categories
(Other Applications Graveyard :: ChatZilla, defect)
Other Applications Graveyard
ChatZilla
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Gijs, Assigned: Gijs)
References
()
Details
(Whiteboard: [cz-0.9.79])
Attachments
(1 file, 1 obsolete file)
|
2.44 KB,
patch
|
bugzilla-mozilla-20000923
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1. Open ChatZilla
2. Connect to a channel where chanserv will op/halfop/voice you.
3. Notice the channel user count exceeds the actual user count by 1, because CZ now counts chanserv.
We should fix this, imho, by making new CIRCChanUser(stuff) not default to adding a user to the channel user list, and add a param that forces it to do so, which should only be true for the /names reply and JOIN message parsing.
Updated•19 years ago
|
Severity: minor → normal
| Assignee | ||
Updated•19 years ago
|
| Assignee | ||
Updated•19 years ago
|
Assignee: rginda → gijskruitbosch+bugs
| Assignee | ||
Comment 2•19 years ago
|
||
Comment on attachment 267057 [details] [diff] [review]
Patch
Except it doesn't. Sigh. Not sure why, but new users aren't being added to the user list here, for whatever reason - doing a /names fixes it. (I just randomly happened to run a build with this fix in it)
Attachment #267057 -
Attachment is obsolete: true
Attachment #267057 -
Flags: review?(silver)
| Assignee | ||
Comment 3•19 years ago
|
||
So, the trick is that I was passing "null" as the parameter for "modes". This b0rks the new CIRCChanUser code because it expects that the param you hand it is "undefined" if there is no data. If it isn't, it gets handed to arrayContains, which will hand it to arrayIndexOf, which will complain that you can't possibly expect it to do something useful with "for x in null".
I don't dare to touch the CIRCChanUser code, so I just pass undefined instead in this patch. And now it works.
Attachment #278042 -
Flags: review?(silver)
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Comment 4•19 years ago
|
||
Comment on attachment 278042 [details] [diff] [review]
Patch
r=silver, on the condition you remove the "|| (this.canonicalName in parent.users)" bit. This is never true at this point.
Attachment #278042 -
Flags: review?(silver) → review+
| Assignee | ||
Comment 5•19 years ago
|
||
Checking in mozilla/extensions/irc/js/lib/irc.js;
/cvsroot/mozilla/extensions/irc/js/lib/irc.js,v <-- irc.js
new revision: 1.107; previous revision: 1.106
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.79]
Updated•1 year ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•