Closed Bug 263760 Opened 21 years ago Closed 21 years ago

/leave doesn't work for Unicode (non-ASCII) channels

Categories

(Other Applications Graveyard :: ChatZilla, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

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

Details

(Whiteboard: cz-patch)

Attachments

(1 file)

When trying to /leave a non-ASCII channel, either with the name specified (in Unicode) or without, it fails - usually with the error: Internal error dispatching command “leave”. TypeError: e.channel has no properties @ <chrome://chatzilla/content/commands.js> 1802 There's two bugs in the code triggering this. Firstly is getChannel: http://lxr.mozilla.org/mozilla/source/extensions/irc/js/lib/irc.js#492 The typo on line 502 means it fails for Unicode/non-ASCII channel names. The second is in cmdLeave itself: http://lxr.mozilla.org/mozilla/source/extensions/irc/xul/content/commands.js#1767 The getChannel on line 1768 fails, and returns |null|, but then it heads off to line 1789 and keels over.
I've also fixed a little regression from bug 261696, but importantly this fixes the /leave problem for Unicode/non-ASCII channel names.
Whiteboard: cz-patch
Attachment #161706 - Flags: review?(rginda)
Comment on attachment 161706 [details] [diff] [review] Correct typo, handle getChannel failing r=rginda
Attachment #161706 - Flags: review?(rginda) → review+
Checked in.
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Product: Core → Other Applications
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: