diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-28 22:43:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-28 22:43:24 +0300 |
commit | 452bcb84e4dd20fb271c975b60631e704376730f (patch) | |
tree | 4f623291e4f86f9365e49755c3506371761b53db /src/gui/widgets/tabs/chat/whispertab.cpp | |
parent | 5a9bea697e5c5585b40b3788eaa607158d5fed8e (diff) | |
download | plus-452bcb84e4dd20fb271c975b60631e704376730f.tar.gz plus-452bcb84e4dd20fb271c975b60631e704376730f.tar.bz2 plus-452bcb84e4dd20fb271c975b60631e704376730f.tar.xz plus-452bcb84e4dd20fb271c975b60631e704376730f.zip |
Move /me effect to chatutils.
Diffstat (limited to 'src/gui/widgets/tabs/chat/whispertab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/chat/whispertab.cpp | 3 |
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); |