Closed
Bug 330990
Opened 19 years ago
Closed 19 years ago
Support channel messages with user prefixes
Categories
(Other Applications Graveyard :: ChatZilla, defect)
Other Applications Graveyard
ChatZilla
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: samuel, Assigned: bugzilla-mozilla-20000923)
References
Details
(Whiteboard: [cz-0.9.75])
Attachments
(1 file)
|
3.16 KB,
patch
|
samuel
:
review+
|
Details | Diff | Splinter Review |
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.
| Assignee | ||
Comment 1•19 years ago
|
||
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.
| Assignee | ||
Comment 2•19 years ago
|
||
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 | ||
Updated•19 years ago
|
Assignee: rginda → silver
Version: unspecified → Trunk
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Updated•19 years ago
|
Summary: need to support channel notices and messages with prefixes → Support channel messages with user prefixes
| Reporter | ||
Comment 3•19 years ago
|
||
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+
| Assignee | ||
Comment 4•19 years ago
|
||
Checked in with changes --> FIXED.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [cz-0.9.75]
Updated•6 months ago
|
Product: Other Applications → Other Applications Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•