summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index a87db0a16..84011b3ec 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -41,9 +41,10 @@
#endif
#include "gui/windows/chatwindow.h"
+#include "gui/windows/inventorywindow.h"
+#include "gui/windows/outfitwindow.h"
#include "gui/windows/skilldialog.h"
#include "gui/windows/socialwindow.h"
-#include "gui/windows/outfitwindow.h"
#include "gui/widgets/tabs/chat/whispertab.h"
@@ -1122,4 +1123,14 @@ impHandler(skill)
return true;
}
+impHandler(craft)
+{
+ const std::string args = event.args;
+ if (args.empty() || !inventoryWindow)
+ return false;
+
+ inventoryWindow->moveItemToCraft(atoi(args.c_str()));
+ return true;
+}
+
} // namespace Actions