mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix ns register validation bug
This commit is contained in:
parent
d6494957a4
commit
0475fe882c
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue