From 91bb7f5877735fc25eb45929e00041d02c24f87e Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 21 Feb 2020 04:26:17 -0500 Subject: [PATCH] fix #775 --- irc/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/accounts.go b/irc/accounts.go index 0bf822c7..f9ffed5d 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -405,7 +405,7 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames // validatePassphrase checks whether a passphrase is allowed by our rules func validatePassphrase(passphrase string) error { // sanity check the length - if len(passphrase) == 0 || len(passphrase) > 600 { + if len(passphrase) == 0 || len(passphrase) > 256 { return errAccountBadPassphrase } // we use * as a placeholder in some places, if it's gotten this far then fail