Closed Bug 330990 Opened 19 years ago Closed 19 years ago

Support channel messages with user prefixes

Categories

(Other Applications Graveyard :: ChatZilla, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

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

References

Details

(Whiteboard: [cz-0.9.75])

Attachments

(1 file)

It's possible to send a msg or notice to @#channel for example. Invite notifications are sent this way which is why they get dumped in the current channel instead of the channel the invite was for.
Blocks: 331051
FWIW, I've found out that the modes supported for these kinds of channel-subset messages are listed in the 005 flag STATUSMSG. http://www.irc.org/tech_docs/005.html mentions it in the table. There's also some relationship with WALLCHOPS, but I don't think it's worth validating anything with 005 in this particular case unless we run into problems.
This needed to rearrange the onNotice handler so that it took preference for channel notices over notices without a user. This means notices from the server to a channel will no go to that channel (with or without the usermode prefix), instead of just going to network. The slightly odd return in the middle of the if/else if/else is needed, and I think is ok WRT code readability.
Attachment #227906 - Flags: review?(samuel)
Assignee: rginda → silver
Version: unspecified → Trunk
Status: NEW → ASSIGNED
Summary: need to support channel notices and messages with prefixes → Support channel messages with user prefixes
Comment on attachment 227906 [details] [diff] [review] Strip usermode prefix from notice/privmsg > CIRCServer.prototype.onNotice = > function serv_notice (e) [...] >+ if (e.params[2].search (/\x01.*\x01/i) != -1) > { > e.type = "ctcp-reply"; > e.destMethod = "onCTCPReply"; > e.set = "server"; > e.destObject = this; > return true; This return is unnecessary now. > CIRCServer.prototype.onPrivmsg = > function serv_privmsg (e) [...] > /* setting replyTo provides a standard place to find the target for */ > /* replys associated with this event. */ Not your comment, but replys -> replies.
Attachment #227906 - Flags: review?(samuel) → review+
Checked in with changes --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.75]
Depends on: 347483
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: