QTfrontend/game.cpp
changeset 10392 5012e1f9e893
parent 10310 22f541fbde32
child 10571 c90a1814a91b
--- a/QTfrontend/game.cpp	Fri Aug 22 00:37:26 2014 +0400
+++ b/QTfrontend/game.cpp	Fri Aug 22 00:57:07 2014 +0400
@@ -312,6 +312,13 @@
             config->Form->ui.pageOptions->windowHeightEdit->setValue(wh[1].toInt());
             break;
         }
+        case '~':
+        {
+            int size = msg.size();
+            QString msgbody = QString::fromUtf8(msg.mid(2).left(size - 4));
+            emit SendConsoleCommand(msgbody);
+            break;
+        }
         default:
         {
             if (gameType == gtNet && !netSuspend)