summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/chat.cpp')
-rw-r--r--src/actions/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/actions/chat.cpp b/src/actions/chat.cpp
index c0aea0179..40ff966be 100644
--- a/src/actions/chat.cpp
+++ b/src/actions/chat.cpp
@@ -241,7 +241,7 @@ static bool splitWhisper(const std::string &args,
toLower(playerName);
toLower(tempNick);
- if (tempNick.compare(playerName) == 0 || args.empty())
+ if (tempNick == playerName || args.empty())
return false;
return true;