mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
small refactor
This commit is contained in:
parent
b929691470
commit
a57bf46e6a
1 changed files with 2 additions and 4 deletions
|
|
@ -1146,7 +1146,6 @@ func nsConfirmPassword(server *Server, account, passphrase string) (errorMessage
|
||||||
func nsPasswdHandler(service *ircService, server *Server, client *Client, command string, params []string, rb *ResponseBuffer) {
|
func nsPasswdHandler(service *ircService, server *Server, client *Client, command string, params []string, rb *ResponseBuffer) {
|
||||||
var target string
|
var target string
|
||||||
var newPassword string
|
var newPassword string
|
||||||
var checkPassword string
|
|
||||||
var errorMessage string
|
var errorMessage string
|
||||||
|
|
||||||
var oper *Oper
|
var oper *Oper
|
||||||
|
|
@ -1172,10 +1171,9 @@ func nsPasswdHandler(service *ircService, server *Server, client *Client, comman
|
||||||
newPassword = ""
|
newPassword = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
// fix #1883 Nickserv gives error when user attempt to change password to *
|
checkPassword := params[2]
|
||||||
checkPassword = params[2]
|
|
||||||
if checkPassword == "*" {
|
if checkPassword == "*" {
|
||||||
checkPassword = ""
|
checkPassword = "" // #1883
|
||||||
}
|
}
|
||||||
|
|
||||||
if target == "" {
|
if target == "" {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue