summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/chat/whispertab.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs/chat/whispertab.cpp')
-rw-r--r--src/gui/widgets/tabs/chat/whispertab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/tabs/chat/whispertab.cpp b/src/gui/widgets/tabs/chat/whispertab.cpp
index f82277171..2830df0f8 100644
--- a/src/gui/widgets/tabs/chat/whispertab.cpp
+++ b/src/gui/widgets/tabs/chat/whispertab.cpp
@@ -30,6 +30,7 @@
#include "gui/widgets/windowcontainer.h"
+#include "utils/chatutils.h"
#include "utils/stringutils.h"
#include "debug.h"
@@ -75,7 +76,7 @@ void WhisperTab::handleCommand(const std::string &msg)
if (type == "me")
{
- std::string str = strprintf("*%s*", args.c_str());
+ std::string str = textToMe(args);
chatHandler->privateMessage(mNick, str);
if (localPlayer)
chatLog(localPlayer->getName(), str);