Changeset 27 in code for trunk


Ignore:
Timestamp:
Feb 6, 2020, 9:19:31 PM (5 years ago)
Author:
contact
Message:

Forward channel information

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r26 r27  
    7272
    7373        return conn
     74}
     75
     76func (c *downstreamConn) prefix() *irc.Prefix {
     77        return &irc.Prefix{
     78                Name: c.nick,
     79                User: c.username,
     80                // TODO: fill the host?
     81        }
    7482}
    7583
  • trunk/upstream.go

    r25 r27  
    169169
    170170                ch.complete = true
     171
     172                c.srv.lock.Lock()
     173                for _, dc := range c.srv.downstreamConns {
     174                        forwardChannel(dc, ch)
     175                }
     176                c.srv.lock.Unlock()
    171177        case irc.RPL_YOURHOST, irc.RPL_CREATED:
    172178                // Ignore
Note: See TracChangeset for help on using the changeset viewer.