diff options
Diffstat (limited to 'source/frontend/StarClientCommandProcessor.cpp')
-rw-r--r-- | source/frontend/StarClientCommandProcessor.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/frontend/StarClientCommandProcessor.cpp b/source/frontend/StarClientCommandProcessor.cpp index ec8d743..d0afb0c 100644 --- a/source/frontend/StarClientCommandProcessor.cpp +++ b/source/frontend/StarClientCommandProcessor.cpp @@ -11,6 +11,7 @@ #include "StarQuestInterface.hpp" #include "StarStatistics.hpp" #include "StarInterfaceLuaBindings.hpp" +#include "StarInput.hpp" namespace Star { @@ -74,7 +75,10 @@ String ClientCommandProcessor::previewQuestPane(StringList const& arguments, fun return "No such quest"; } -StringList ClientCommandProcessor::handleCommand(String const& commandLine) { +StringList ClientCommandProcessor::handleCommand(String const& commandLine, bool userInput) { + Maybe<Input::ClipboardUnlock> unlock; + if (userInput) // allow clipboard usage during this code + unlock = Input::singleton().unlockClipboard(); try { if (!commandLine.beginsWith("/")) throw StarException("ClientCommandProcessor expected command, does not start with '/'"); |