summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp7
-rw-r--r--src/actions/actions.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index dba8da43f..3a8aeaa4a 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -71,6 +71,7 @@
#include "render/graphics.h"
#include "net/chathandler.h"
+#include "net/gamehandler.h"
#include "net/ipc.h"
#include "net/net.h"
#include "net/playerhandler.h"
@@ -674,4 +675,10 @@ impHandler0(cacheInfo)
return true;
}
+impHandler0(disconnect)
+{
+ Net::getGameHandler()->disconnect2();
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 691892bd8..9e7e9f12c 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -64,6 +64,7 @@ namespace Actions
decHandler(priceLoad);
decHandler(priceSave);
decHandler(cacheInfo);
+ decHandler(disconnect);
} // namespace Actions
#undef decHandler