From f2f7f680a135bbbc94f29268a92e77cc18e5f238 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 8 Jun 2017 18:46:33 +0300 Subject: Replace ext.compare to direct string comparison. --- src/actions/chat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/actions/chat.cpp') 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; -- cgit v1.2.3-70-g09d2