Closed Bug 347483 Opened 19 years ago Closed 19 years ago

'this.userModes has no properties' connecting to moznet

Categories

(Other Applications Graveyard :: ChatZilla, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

Details

(Keywords: regression, Whiteboard: [cz-0.9.76])

Attachments

(1 file)

I get this error twice when connecting to moznet with current SeaMonkey trunk. I don't see any noticeable symptoms. cz: Error routing event server.notice: + message (string) 'this.userModes has no properties' + fileName (string) 'chrome://chatzilla/content/lib/js/irc.js' + lineNumber (number) 2292 + stack (string) 275 chars + name (string) 'TypeError' * in onNotice TypeError: this.userModes has no properties cz: serv_notice([object Object])@chrome://chatzilla/content/lib/js/irc.js:2292 ep_routeevent([object Object])@chrome://chatzilla/content/lib/js/events.js:238 ep_stepevents()@chrome://chatzilla/content/lib/js/events.js:306 mainStep()@chrome://chatzilla/content/static.js:1778 The parts of the code that would set userModes are executed later. This is an apparent regression from bug 330990
This will, I think, cause the dropping of all the notices sent before the first normal message during connection - hence, major security. The code for setting up the userModes, and other stuff, waits for the 001 to initialise stuff (it doesn't init it when the server objects are created, as that'd be at application startup, which'd suck). Correct solution would be to box in the prefix handling code in onNotice to not check if there's no userModes data - privmsgs shouldn't have the same issue, as they aren't sent before the 001, but could be protected likewise.
Severity: normal → major
OS: Linux → All
Hardware: PC → All
Assignee: rginda → silver
Status: NEW → ASSIGNED
Attachment #233368 - Flags: review?(samuel)
Comment on attachment 233368 [details] [diff] [review] Only strip prefixes if we know what they are Does userModes always exist? If not, then please change it to avoid the warning.
Attachment #233368 - Flags: review?(samuel) → review+
Checked in --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.76]
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: