1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-14 10:34:41 +02:00

Fix format stripping in max nick length

This commit is contained in:
Iaccidentally
2012-11-14 03:27:23 -05:00
parent cdde047229
commit 9af7ab52ea

View File

@@ -93,8 +93,8 @@ public class Commandnick extends EssentialsCommand
{
throw new Exception(_("nickNamesAlpha"));
}
FormatUtil.stripFormat(nick);
if (ess.getSettings().getData().getChat().getMaxNickLength() > 0 && nick.length() > ess.getSettings().getData().getChat().getMaxNickLength())
final String stripNick = FormatUtil.stripFormat(nick);
if (ess.getSettings().getData().getChat().getMaxNickLength() > 0 && stripNick.length() > ess.getSettings().getData().getChat().getMaxNickLength())
{
throw new Exception(_("nickTooLong"));
}