diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 2 | ||||
-rw-r--r-- | src/gui/widgets/whispertab.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index bd4c5910..20aadfb7 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -246,7 +246,7 @@ void ChatTab::chatLog(std::string line, Own own, bool ignoreRecord) void ChatTab::chatLog(const std::string &nick, const std::string &msg) { chatLog(nick + " : " + msg, - nick == player_node->getName() ? BY_PLAYER : BY_OTHER, + nick == local_player->getName() ? BY_PLAYER : BY_OTHER, false); } diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 864f1f51..c3674c54 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -56,7 +56,7 @@ void WhisperTab::handleInput(const std::string &msg) Net::getChatHandler()->privateMessage(mNick, msg); - chatLog(player_node->getName(), msg); + chatLog(local_player->getName(), msg); } void WhisperTab::handleCommand(const std::string &msg) |