summaryrefslogtreecommitdiffstats
path: root/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
diff options
context:
space:
mode:
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandwhois.java')
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandwhois.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
index b8081d04e..c99503eef 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandwhois.java
@@ -43,9 +43,9 @@ public class Commandwhois extends EssentialsCommand
{
continue;
}
- final String displayName = ChatColor.stripColor(user.getNick());
- if (!whois.equalsIgnoreCase(displayName)
- && !whois.equalsIgnoreCase(displayName.substring(prefixLength))
+ final String nickName = ChatColor.stripColor(user.getNickname());
+ if (!whois.equalsIgnoreCase(nickName)
+ && !whois.substring(prefixLength).equalsIgnoreCase(nickName)
&& !whois.equalsIgnoreCase(user.getName()))
{
continue;