summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-05-02 20:59:46 -0600
committerJared Adams <jaxad0127@gmail.com>2009-05-02 20:59:46 -0600
commit8a3a417e3a3c083414d35de0f0dad91edde09276 (patch)
tree569d5d9bfeac1594a495f2df2da1dfab9a5c9eb3
parente9dde578622003eea93e9fd8c0486c6ad073d26e (diff)
downloadmana-client-8a3a417e3a3c083414d35de0f0dad91edde09276.tar.gz
mana-client-8a3a417e3a3c083414d35de0f0dad91edde09276.tar.bz2
mana-client-8a3a417e3a3c083414d35de0f0dad91edde09276.tar.xz
mana-client-8a3a417e3a3c083414d35de0f0dad91edde09276.zip
Make sure messages on most tabs are handled right
-rw-r--r--src/gui/widgets/chattab.cpp2
-rw-r--r--src/gui/widgets/whispertab.cpp3
-rw-r--r--src/net/ea/partyhandler.cpp2
3 files changed, 3 insertions, 4 deletions
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)
diff --git a/src/net/ea/partyhandler.cpp b/src/net/ea/partyhandler.cpp
index dd6ea663..ced0e2c4 100644
--- a/src/net/ea/partyhandler.cpp
+++ b/src/net/ea/partyhandler.cpp
@@ -266,7 +266,7 @@ void PartyHandler::handleMessage(MessageIn &msg)
being->setSpeech(chatMsg, SPEECH_TIME);
PartyMember *member = partyWindow->findMember(id);
- if (member)
+ if (member)
partyTab->chatLog(member->name, chatMsg);
else
partyTab->chatLog(strprintf(_("An unknown member tried to "