fixed ERR_PASSWDMISMATCH reply

This commit is contained in:
Andreas Neue 2016-07-27 15:56:59 +02:00
parent e209fc7cc6
commit fd24369eaf
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ func (sv *Server) dispatcher() {
continue continue
} }
if !sv.authCallback(cl.Name(), cl.Password()) { if !sv.authCallback(cl.Name(), cl.Password()) {
cl.Receive(irc.M(sv.host, ERR_PASSWDMISMATCH, cl.Name(), "Password incorrect")) cl.Receive(irc.M(sv.host, ERR_PASSWDMISMATCH, "", "Password incorrect"))
go func() { go func() {
time.Sleep(5 * time.Second) time.Sleep(5 * time.Second)
cl.Register(false) cl.Register(false)