mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-12 15:53:31 -07:00
clear out old clients; fix NameReply
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ func (reply *NumericReply) String() string {
|
||||
// names reply
|
||||
|
||||
type NamesReply struct {
|
||||
*BaseReply
|
||||
BaseReply
|
||||
channel *Channel
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@ func (server *Server) receiveCommands(commands <-chan Command) {
|
||||
// no-op
|
||||
default:
|
||||
client.Reply(ErrPasswdMismatch(server))
|
||||
server.clients.Remove(client)
|
||||
client.Destroy()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user