Changeset 648 in code for trunk/upstream.go


Ignore:
Timestamp:
Oct 17, 2021, 7:54:18 PM (4 years ago)
Author:
contact
Message:

Add support for account-notify

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r568 r648  
    13871387                        })
    13881388                })
     1389        case "ACCOUNT":
     1390                if msg.Prefix == nil {
     1391                        return fmt.Errorf("expected a prefix")
     1392                }
     1393
     1394                uc.forEachDownstream(func(dc *downstreamConn) {
     1395                        dc.SendMessage(&irc.Message{
     1396                                Prefix:  dc.marshalUserPrefix(uc.network, msg.Prefix),
     1397                                Command: msg.Command,
     1398                                Params:  msg.Params,
     1399                        })
     1400                })
    13891401        case irc.RPL_BANLIST, irc.RPL_INVITELIST, irc.RPL_EXCEPTLIST:
    13901402                var channel, mask string
Note: See TracChangeset for help on using the changeset viewer.