summaryrefslogtreecommitdiff
path: root/src/actions/chat.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-08 18:46:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-08 23:41:37 +0300
commitf2f7f680a135bbbc94f29268a92e77cc18e5f238 (patch)
tree8a0269a9d4e670dc810cbb14ca6139b358b3ab35 /src/actions/chat.cpp
parent763e91044a4e9c8905ee082457cb42da36a38cc0 (diff)
downloadplus-f2f7f680a135bbbc94f29268a92e77cc18e5f238.tar.gz
plus-f2f7f680a135bbbc94f29268a92e77cc18e5f238.tar.bz2
plus-f2f7f680a135bbbc94f29268a92e77cc18e5f238.tar.xz
plus-f2f7f680a135bbbc94f29268a92e77cc18e5f238.zip
Replace ext.compare to direct string comparison.
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;