QTfrontend/net/proto.cpp
changeset 8759 1a4b9b9fe2b0
parent 6952 7f70f37bbf08
child 9080 9b42757d7e71
--- a/QTfrontend/net/proto.cpp	Wed Mar 20 09:13:05 2013 +0400
+++ b/QTfrontend/net/proto.cpp	Wed Mar 20 23:18:46 2013 +0100
@@ -45,11 +45,6 @@
     return buf;
 }
 
-QString HWProto::formatChatMsgForFrontend(const QString & msg)
-{
-    return formatChatMsg("|nick|", msg);
-}
-
 QString HWProto::formatChatMsg(const QString & nick, const QString & msg)
 {
     if(msg.left(4) == "/me ")
@@ -57,3 +52,11 @@
     else
         return QString("\x01%1: %2").arg(nick).arg(msg);
 }
+
+QString HWProto::chatStringToAction(const QString & string)
+{
+    if(string.left(4) == "/me ")
+        return string.mid(4);
+    else
+        return NULL;
+}