diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-26 18:40:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-26 18:40:02 +0300 |
commit | 537b66dbab370463a4a8d0d860a98626f73b4635 (patch) | |
tree | b57561ba706939d73ecce4f3242cdca6ed515b46 /src/actions | |
parent | 2f345a6bf8385bf0874b976d0da9790faa4ee0ff (diff) | |
download | plus-537b66dbab370463a4a8d0d860a98626f73b4635.tar.gz plus-537b66dbab370463a4a8d0d860a98626f73b4635.tar.bz2 plus-537b66dbab370463a4a8d0d860a98626f73b4635.tar.xz plus-537b66dbab370463a4a8d0d860a98626f73b4635.zip |
Move chat command /disconnect into actions.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 7 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
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 |