summaryrefslogtreecommitdiff
path: root/src/gui/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r--src/gui/chat.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp
index 0e75bda3..92386e76 100644
--- a/src/gui/chat.cpp
+++ b/src/gui/chat.cpp
@@ -472,7 +472,7 @@ void ChatWindow::whisper(const std::string &nick,
if (mes.empty())
return;
- std::string playerName = player_node->getName();
+ std::string playerName = local_player->getName();
std::string tempNick = nick;
toLower(playerName);
@@ -502,7 +502,7 @@ void ChatWindow::whisper(const std::string &nick,
else
{
tab->chatLog(nick, mes);
- player_node->afkRespond(tab, nick);
+ local_player->afkRespond(tab, nick);
}
}
else
@@ -523,7 +523,7 @@ void ChatWindow::whisper(const std::string &nick,
ChatTab *ChatWindow::addWhisperTab(const std::string &nick, bool switchTo)
{
- std::string playerName = player_node->getName();
+ std::string playerName = local_player->getName();
std::string tempNick = nick;
toLower(playerName);