1
0
Fork 0
forked from External/ergo

send initial nick message to source client

This commit is contained in:
Jeremy Latt 2014-02-11 14:32:17 -08:00
parent 0e07b29010
commit aac0efebee
4 changed files with 13 additions and 8 deletions

View file

@ -93,7 +93,7 @@ func (c *Client) readConn(recv <-chan string) {
func (c *Client) writeConn(write chan<- string, replies <-chan Reply) {
for reply := range replies {
if DEBUG_CLIENT {
log.Printf("%s ← %s : %s", c, reply.Source(), reply)
log.Printf("%s ← %s %s", c, reply.Source(), reply)
}
reply.Format(c, write)
}
@ -136,7 +136,7 @@ func (client *Client) InterestedClients() ClientSet {
clients := make(ClientSet)
for channel := range client.channels {
for member := range channel.members {
clients[member] = true
clients.Add(member)
}
}
return clients