QTfrontend/ui/widget/chatwidget.cpp
changeset 13844 184584b82c4c
parent 13843 7c333cffd63e
child 13846 d8e606cf8ff5
--- a/QTfrontend/ui/widget/chatwidget.cpp	Fri Oct 05 04:00:16 2018 +0200
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Fri Oct 05 04:17:56 2018 +0200
@@ -868,6 +868,12 @@
     if (line[0] == '/')
     {
         QString tline = line.trimmed();
+        if (tline.length() <= 1)
+        {
+            // Empty chat command
+            displayWarning(QCoreApplication::translate("server", "Unknown command or invalid parameters. Say '/help' in chat for a list of commands."));
+            return true;
+        }
         if (tline.startsWith("/me"))
             return false; // not a real command
         else if (tline == "/clear") {