diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-16 02:24:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-16 02:24:15 +0300 |
commit | 087a2f8802bb91ca06d4d82af4a132dd9a70267e (patch) | |
tree | 30e45a169f28127b123f369e6f2aad3ed56d34d8 /src/input | |
parent | b1876f6c72222dae051bd964dab89f24a66d96c0 (diff) | |
download | mv-087a2f8802bb91ca06d4d82af4a132dd9a70267e.tar.gz mv-087a2f8802bb91ca06d4d82af4a132dd9a70267e.tar.bz2 mv-087a2f8802bb91ca06d4d82af4a132dd9a70267e.tar.xz mv-087a2f8802bb91ca06d4d82af4a132dd9a70267e.zip |
Trigger asserts if unknown commands executed in popup menu or in chat.
Diffstat (limited to 'src/input')
-rw-r--r-- | src/input/inputmanager.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp index 9133be6ac..bf4433339 100644 --- a/src/input/inputmanager.cpp +++ b/src/input/inputmanager.cpp @@ -53,6 +53,7 @@ #include "gui/windows/textdialog.h" #include "gui/windows/tradewindow.h" +#include "utils/checkutils.h" #include "utils/gettext.h" #include "utils/timer.h" @@ -848,6 +849,12 @@ bool InputManager::executeChatCommand(const std::string &restrict cmd, return true; } } + else + { + reportAlways("Unknown chat command: /%s %s", + cmd.c_str(), + args.c_str()); + } return false; } |