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

@ -66,7 +66,7 @@ func (channel *Channel) Reply(reply Reply) error {
func (channel *Channel) receiveCommands(commands <-chan ChannelCommand) {
for command := range commands {
if DEBUG_CHANNEL {
log.Printf("%s → %s : %s", command.Source(), channel, command)
log.Printf("%s → %s %s", command.Source(), channel, command)
}
command.HandleChannel(channel)
}
@ -75,7 +75,7 @@ func (channel *Channel) receiveCommands(commands <-chan ChannelCommand) {
func (channel *Channel) receiveReplies(replies <-chan Reply) {
for reply := range replies {
if DEBUG_CHANNEL {
log.Printf("%s ← %s : %s", channel, reply.Source(), reply)
log.Printf("%s ← %s %s", channel, reply.Source(), reply)
}
for client := range channel.members {
if reply.Source() != Identifier(client) {