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/actions.cpp | |
parent | 2f345a6bf8385bf0874b976d0da9790faa4ee0ff (diff) | |
download | manaplus-537b66dbab370463a4a8d0d860a98626f73b4635.tar.gz manaplus-537b66dbab370463a4a8d0d860a98626f73b4635.tar.bz2 manaplus-537b66dbab370463a4a8d0d860a98626f73b4635.tar.xz manaplus-537b66dbab370463a4a8d0d860a98626f73b4635.zip |
Move chat command /disconnect into actions.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 7 |
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 |