From 44b79a052c003c8fc8ce210c32d19dce5047a47a Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Sun, 23 Feb 2020 00:11:57 -0500 Subject: [PATCH] raise passphrase length limit to 300 bytes For irctest compatibility. Fixes #775 --- irc/accounts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/accounts.go b/irc/accounts.go index 1a0fa8c6..124df613 100644 --- a/irc/accounts.go +++ b/irc/accounts.go @@ -441,7 +441,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) > 256 { + if len(passphrase) == 0 || len(passphrase) > 300 { return errAccountBadPassphrase } // we use * as a placeholder in some places, if it's gotten this far then fail