Closed Bug 428811 Opened 16 years ago Closed 16 years ago

ChatZilla appends underscores infinitely, when nickname is unavailable on server

Categories

(Other Applications :: ChatZilla, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Mitch, Assigned: Mitch)

Details

(Whiteboard: [cz-0.9.82])

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008041206 Minefield/3.0pre
Build Identifier: ChatZilla 0.9.81

If a nickname is already in use on a server, ChatZilla appends an underscore to the previously-tried nickname, in an attempt to choose a unique, unused nickname. There is no automatic stop condition for this process.

Reproducible: Always
Attached patch Patch v1.0 (obsolete) — Splinter Review
This patch limits retrying to the number of nicknames on the nickname list plus 3.
Assignee: rginda → mitch_1_2
Status: NEW → ASSIGNED
Attachment #315389 - Flags: review?(silver)
Comment on attachment 315389 [details] [diff] [review]
Patch v1.0

You broke the nick list version by moving the changeNick bits into the else if. Now, if |tryList| is true, it'll never actually change nickname, as far as I can tell. r- on that.
Attachment #315389 - Flags: review?(silver) → review-
Attached patch Patch v1.1Splinter Review
This patch addresses the previous comments.
Attachment #315389 - Attachment is obsolete: true
Attachment #315759 - Flags: review?(gijskruitbosch+bugs)
Is it just me, or does using the nickname list, even with this patch, go on indefinitely? Is that intended behaviour? Silver, got an opinion on this one?
The code says otherwise; it'll try each nickname in the list once and only once, starting at the current nick (if in the list), or the first (otherwise).
Comment on attachment 315759 [details] [diff] [review]
Patch v1.1

Alright, then this seems OK. r=me, assuming this tested well.
Attachment #315759 - Flags: review?(gijskruitbosch+bugs) → review+
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.82]
Version: unspecified → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: