summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 18:40:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 18:40:02 +0300
commit537b66dbab370463a4a8d0d860a98626f73b4635 (patch)
treeb57561ba706939d73ecce4f3242cdca6ed515b46 /src/actions/actions.cpp
parent2f345a6bf8385bf0874b976d0da9790faa4ee0ff (diff)
downloadmv-537b66dbab370463a4a8d0d860a98626f73b4635.tar.gz
mv-537b66dbab370463a4a8d0d860a98626f73b4635.tar.bz2
mv-537b66dbab370463a4a8d0d860a98626f73b4635.tar.xz
mv-537b66dbab370463a4a8d0d860a98626f73b4635.zip
Move chat command /disconnect into actions.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp7
1 files changed, 7 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