summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-06 17:57:25 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-06 19:54:37 (GMT)
commit622f2246ef31a05eb38e8f2ab3ac9c1bd9264920 (patch)
treefb9009f6803f395c9da457039a823a0ffcdfc98a /src/cat/LuaScriptInterface.cpp
parentf75a3c264235d5edf162fd0f7bf6e04d629704f9 (diff)
downloadpowder-622f2246ef31a05eb38e8f2ab3ac9c1bd9264920.zip
powder-622f2246ef31a05eb38e8f2ab3ac9c1bd9264920.tar.gz
Fix TPTScript 'set' function
Diffstat (limited to 'src/cat/LuaScriptInterface.cpp')
-rw-r--r--src/cat/LuaScriptInterface.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index 5aa6a73..40bcc08 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -310,7 +310,12 @@ int LuaScriptInterface::Command(std::string command)
std::string LuaScriptInterface::FormatCommand(std::string command)
{
- return command;
+ if(command[0] == '!')
+ {
+ return "!"+legacy->FormatCommand(command.substr(1));
+ }
+ else
+ return command;
}
LuaScriptInterface::~LuaScriptInterface() {