Changeset 559 in code for trunk/downstream.go


Ignore:
Timestamp:
Jun 14, 2021, 7:44:38 PM (4 years ago)
Author:
contact
Message:

Add support for account-tag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r555 r559  
    132132// require support from all upstreams to be enabled
    133133var needAllDownstreamCaps = map[string]string{
     134        "account-tag":   "",
    134135        "away-notify":   "",
    135136        "extended-join": "",
     
    376377                        case "time":
    377378                                supported = dc.caps["server-time"]
     379                        case "account":
     380                                supported = dc.caps["account"]
    378381                        }
    379382                        if !supported {
     
    19511954                        echoTags := tags.Copy()
    19521955                        echoTags["time"] = irc.TagValue(time.Now().UTC().Format(serverTimeLayout))
     1956                        if uc.account != "" {
     1957                                echoTags["account"] = irc.TagValue(uc.account)
     1958                        }
    19531959                        echoMsg := &irc.Message{
    19541960                                Tags: echoTags,
Note: See TracChangeset for help on using the changeset viewer.