diff options
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r-- | src/gui/windows/chatwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp index 8ef8e9f75..88d4d3fc5 100644 --- a/src/gui/windows/chatwindow.cpp +++ b/src/gui/windows/chatwindow.cpp @@ -1093,7 +1093,7 @@ void ChatWindow::addWhisper(const std::string &restrict nick, toLower(playerName); toLower(tempNick); - if (tempNick.compare(playerName) == 0) + if (tempNick == playerName) return; WhisperTab *tab = nullptr; @@ -1190,7 +1190,7 @@ WhisperTab *ChatWindow::addWhisperTab(const std::string &caption, const TabMap::const_iterator i = mWhispers.find(tempNick); WhisperTab *ret = nullptr; - if (tempNick.compare(playerName) == 0) + if (tempNick == playerName) return nullptr; if (i != mWhispers.end()) @@ -1227,7 +1227,7 @@ WhisperTab *ChatWindow::getWhisperTab(const std::string &nick) const const TabMap::const_iterator i = mWhispers.find(tempNick); WhisperTab *ret = nullptr; - if (tempNick.compare(playerName) == 0) + if (tempNick == playerName) return nullptr; if (i != mWhispers.end()) |