Fix op colours, which KHobbits broke!

This commit is contained in:
md_5 2012-03-04 15:43:00 +11:00 committed by KHobbits
parent 873c9880dd
commit b512a243e7

View file

@ -262,19 +262,19 @@ public class User extends UserData implements Comparable<User>, IReplyTo, IUser
nickname.append(ess.getSettings().getNicknamePrefix()).append(nick); nickname.append(ess.getSettings().getNicknamePrefix()).append(nick);
} }
if (isOp())
{
try
{
nickname.insert(0, ess.getSettings().getOperatorColor().toString());
nickname.append("§f");
}
catch (Exception e)
{
}
}
if (addprefixsuffix && ess.getSettings().addPrefixSuffix()) if (addprefixsuffix && ess.getSettings().addPrefixSuffix())
{ {
if (isOp())
{
try
{
nickname.insert(0, ess.getSettings().getOperatorColor().toString());
}
catch (Exception e)
{
}
}
if (!ess.getSettings().disablePrefix()) if (!ess.getSettings().disablePrefix())
{ {
final String prefix = ess.getPermissionsHandler().getPrefix(base).replace('&', '§'); final String prefix = ess.getPermissionsHandler().getPrefix(base).replace('&', '§');