Changeset 303 in code for trunk/irc.go


Ignore:
Timestamp:
May 27, 2020, 9:48:08 PM (5 years ago)
Author:
delthas
Message:

Add support for TAGMSG and client message tags

Previously we dropped all TAGMSG as well as any client message tag sent
from downstream.

This adds support for properly forwarding TAGMSG and client message tags
from downstreams and upstreams.

TAGMSG messages are intentionally not logged, because they are currently
typically used for +typing, which can generate a lot of traffic and is
only useful for a few seconds after it is sent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/irc.go

    r293 r303  
    275275}
    276276
     277func copyClientTags(tags irc.Tags) irc.Tags {
     278        t := make(irc.Tags, len(tags))
     279        for k, v := range tags {
     280                if strings.HasPrefix(k, "+") {
     281                        t[k] = v
     282                }
     283        }
     284        return t
     285}
     286
    277287type batch struct {
    278288        Type   string
Note: See TracChangeset for help on using the changeset viewer.