summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-14 21:54:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-14 21:54:35 +0300
commit4e736ecaea7ec5bdaaa0ef9bb91373be8a2d1e2b (patch)
tree01865f4cafd5ea70787f97e24611155ee7160e41 /src/actions/commands.cpp
parent83018227d49168b67a58fd80f5bb415b4f78d0ff (diff)
downloadManaVerse-4e736ecaea7ec5bdaaa0ef9bb91373be8a2d1e2b.tar.gz
ManaVerse-4e736ecaea7ec5bdaaa0ef9bb91373be8a2d1e2b.tar.bz2
ManaVerse-4e736ecaea7ec5bdaaa0ef9bb91373be8a2d1e2b.tar.xz
ManaVerse-4e736ecaea7ec5bdaaa0ef9bb91373be8a2d1e2b.zip
Add chat command for leave party.
New chat command: /leaveparty Alias: /partyleave
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index dd93da0e8..07cd0c64e 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -46,6 +46,7 @@
#include "net/chathandler.h"
#include "net/guildhandler.h"
#include "net/homunculushandler.h"
+#include "net/partyhandler.h"
#include "net/pethandler.h"
#include "net/serverfeatures.h"
@@ -814,4 +815,10 @@ impHandler0(fireHomunculus)
return true;
}
+impHandler0(leaveParty)
+{
+ partyHandler->leave();
+ return true;
+}
+
} // namespace Actions