3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

fix ns register validation bug

This commit is contained in:
Shivaram Lingamneni 2019-01-09 15:03:44 -05:00
parent d6494957a4
commit 0475fe882c

View File

@ -313,7 +313,7 @@ func nsRegisterHandler(server *Server, client *Client, command string, params []
// get params
username, email := params[0], params[1]
var passphrase string
if len(params) > 0 {
if len(params) > 2 {
passphrase = params[2]
}