diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:35:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:51:43 +0300 |
commit | 9510979d65738fb03b2c48425fa59984c2a4b938 (patch) | |
tree | d546c5e932da966d4bddcebb5ae9a0f6f4820881 /src/commandhandler.cpp | |
parent | a7c723b681ddefdcaa84cb9b16681c65818d7110 (diff) | |
download | ManaVerse-9510979d65738fb03b2c48425fa59984c2a4b938.tar.gz ManaVerse-9510979d65738fb03b2c48425fa59984c2a4b938.tar.bz2 ManaVerse-9510979d65738fb03b2c48425fa59984c2a4b938.tar.xz ManaVerse-9510979d65738fb03b2c48425fa59984c2a4b938.zip |
add comments for translators.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 967f6d65d..4675ddd22 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -55,7 +55,12 @@ void CommandHandler::handleCommand(const std::string &command, args = trim(args); const CommandsMapIter it = mCommands.find(type); if (it != mCommands.end()) + { ((*it).second)(args, tab); + } else if (!tab->handleCommand(type, args)) + { + // TRANSLATORS: chat commands handling message tab->chatLog(_("Unknown command.")); + } } |