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:
parent
c805006ab8
commit
4b98d2a45b
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user