mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-15 11:04:29 +02:00
Fix format stripping in max nick length
This commit is contained in:
@@ -93,8 +93,8 @@ public class Commandnick extends EssentialsCommand
|
|||||||
{
|
{
|
||||||
throw new Exception(_("nickNamesAlpha"));
|
throw new Exception(_("nickNamesAlpha"));
|
||||||
}
|
}
|
||||||
FormatUtil.stripFormat(nick);
|
final String stripNick = FormatUtil.stripFormat(nick);
|
||||||
if (ess.getSettings().getData().getChat().getMaxNickLength() > 0 && nick.length() > ess.getSettings().getData().getChat().getMaxNickLength())
|
if (ess.getSettings().getData().getChat().getMaxNickLength() > 0 && stripNick.length() > ess.getSettings().getData().getChat().getMaxNickLength())
|
||||||
{
|
{
|
||||||
throw new Exception(_("nickTooLong"));
|
throw new Exception(_("nickTooLong"));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user