From 452bcb84e4dd20fb271c975b60631e704376730f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Oct 2014 22:43:24 +0300 Subject: Move /me effect to chatutils. --- src/gui/widgets/tabs/chat/whispertab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/widgets') 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); -- cgit v1.2.3-70-g09d2