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/utils/chatutils.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils/chatutils.cpp') diff --git a/src/utils/chatutils.cpp b/src/utils/chatutils.cpp index 105b7ace5..c3a877fae 100644 --- a/src/utils/chatutils.cpp +++ b/src/utils/chatutils.cpp @@ -175,3 +175,8 @@ void replaceVars(std::string &str) } } } + +std::string textToMe(const std::string &str) +{ + return strprintf("*%s*", str.c_str()); +} -- cgit v1.2.3-70-g09d2