Fix PASS handling

This commit is contained in:
Daniel Oaks
2016-06-28 16:06:17 +10:00
parent bded3202c2
commit 41473bb444
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -341,7 +341,8 @@ func passHandler(server *Server, client *Client, msg ircmsg.IrcMessage) bool {
// check the provided password
password := []byte(msg.Params[0])
if ComparePassword(server.password, password) != nil {
client.Quit("bad password")
client.Send(nil, server.nameString, ERR_PASSWDMISMATCH, client.nickString, "Password incorrect")
client.Send(nil, server.nameString, "ERROR", "Password incorrect")
return true
}