Ver código fonte

fix #1179

tags/v2.2.0-rc1
Shivaram Lingamneni 3 anos atrás
pai
commit
39269a903b
1 arquivos alterados com 8 adições e 0 exclusões
  1. 8
    0
      irc/nickserv.go

+ 8
- 0
irc/nickserv.go Ver arquivo

@@ -797,6 +797,14 @@ func nsRegisterHandler(server *Server, client *Client, command string, params []
797 797
 		}
798 798
 	}
799 799
 
800
+	if passphrase != "" {
801
+		cfPassphrase, err := Casefold(passphrase)
802
+		if err == nil && cfPassphrase == details.nickCasefolded {
803
+			nsNotice(rb, client.t("Usage: REGISTER <passphrase> [email]")) // #1179
804
+			return
805
+		}
806
+	}
807
+
800 808
 	if !nsLoginThrottleCheck(client, rb) {
801 809
 		return
802 810
 	}

Carregando…
Cancelar
Salvar