~emersion/soju

5e11e717f16341f063d204d4a374021afec3061b — Simon Ser 6 months ago ecf3518
Rename user.clients to clientNames

This doesn't contain anything other than just the names. Make this
clearer.
2 files changed, 9 insertions(+), 9 deletions(-)

M upstream.go
M user.go
M upstream.go => upstream.go +1 -1
@@ 1752,7 1752,7 @@ func (uc *upstreamConn) appendLog(entity string, msg *irc.Message) (msgID string
			return ""
		}

		for clientName, _ := range uc.user.clients {
		for clientName, _ := range uc.user.clientNames {
			uc.network.delivered.StoreID(entity, clientName, lastID)
		}
	}

M user.go => user.go +8 -8
@@ 308,7 308,7 @@ type user struct {
	networks        []*network
	downstreamConns []*downstreamConn
	msgStore        messageStore
	clients         map[string]struct{} // indexed by client name
	clientNames     map[string]struct{}

	// LIST commands in progress
	pendingLISTs []pendingLIST


@@ 329,12 329,12 @@ func newUser(srv *Server, record *User) *user {
	}

	return &user{
		User:     *record,
		srv:      srv,
		events:   make(chan event, 64),
		done:     make(chan struct{}),
		msgStore: msgStore,
		clients:  make(map[string]struct{}),
		User:        *record,
		srv:         srv,
		events:      make(chan event, 64),
		done:        make(chan struct{}),
		msgStore:    msgStore,
		clientNames: make(map[string]struct{}),
	}
}



@@ 490,7 490,7 @@ func (u *user) run() {
				uc.updateAway()
			})

			u.clients[dc.clientName] = struct{}{}
			u.clientNames[dc.clientName] = struct{}{}
		case eventDownstreamDisconnected:
			dc := e.dc