summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/chatutils.cpp5
-rw-r--r--src/utils/chatutils.h2
2 files changed, 7 insertions, 0 deletions
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());
+}
diff --git a/src/utils/chatutils.h b/src/utils/chatutils.h
index 7c7c0102f..664d887db 100644
--- a/src/utils/chatutils.h
+++ b/src/utils/chatutils.h
@@ -31,4 +31,6 @@ void outStringNormal(ChatTab *const tab,
void replaceVars(std::string &str);
+std::string textToMe(const std::string &str);
+
#endif // UTILS_CHATUTILS_H