3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-22 18:52:41 +01:00

clear out old clients; fix NameReply

This commit is contained in:
Jeremy Latt 2014-02-13 11:06:07 -08:00
parent c805006ab8
commit 4b98d2a45b
2 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,7 @@ func (reply *NumericReply) String() string {
// names reply // names reply
type NamesReply struct { type NamesReply struct {
*BaseReply BaseReply
channel *Channel channel *Channel
} }

View File

@ -67,6 +67,7 @@ func (server *Server) receiveCommands(commands <-chan Command) {
// no-op // no-op
default: default:
client.Reply(ErrPasswdMismatch(server)) client.Reply(ErrPasswdMismatch(server))
server.clients.Remove(client)
client.Destroy() client.Destroy()
return return
} }