From 8a3a417e3a3c083414d35de0f0dad91edde09276 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 2 May 2009 20:59:46 -0600 Subject: Make sure messages on most tabs are handled right --- src/gui/widgets/chattab.cpp | 2 +- src/gui/widgets/whispertab.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index f04b8278..e96f7738 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -206,7 +206,7 @@ void ChatTab::chatLog(std::string line, int own, bool ignoreRecord) void ChatTab::chatLog(const std::string &nick, const std::string &msg) { - chatLog(nick + ": " + msg, + chatLog(nick + " : " + msg, nick == player_node->getName() ? BY_PLAYER : BY_OTHER, false); } diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp index 0c6503a6..5e005709 100644 --- a/src/gui/widgets/whispertab.cpp +++ b/src/gui/widgets/whispertab.cpp @@ -52,8 +52,7 @@ void WhisperTab::handleInput(const std::string &msg) Net::getChatHandler()->privateMessage(mNick, msg); - chatLog(strprintf(_("%s: %s"), player_node->getName().c_str(), - msg.c_str()), BY_PLAYER, false); + chatLog(player_node->getName(), msg); } void WhisperTab::handleCommand(const std::string &msg) -- cgit v1.2.3-70-g09d2