summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-29 01:55:41 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-29 01:55:41 +0300
commit9956ff63ccfaee02ed68d0125007b90849cc1ee5 (patch)
tree0cf8ee36f9cd39471590234de1adde3d0edeaf27 /src/actions
parent60100c4b30f779fe8f63758f9974891e98816340 (diff)
downloadmv-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.gz
mv-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.bz2
mv-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.xz
mv-9956ff63ccfaee02ed68d0125007b90849cc1ee5.zip
Add chat command /partyrecall. Also add it to npc context menu.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp9
-rw-r--r--src/actions/commands.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index bbde5c4a8..afc1c6d80 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1518,4 +1518,13 @@ impHandler(commandChangePartyLeader)
return true;
}
+impHandler(commandPartyRecall)
+{
+ const std::string args = event.args;
+ if (args.empty())
+ return false;
+ adminHandler->partyRecall(args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index efc436c97..76b20effd 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -135,6 +135,7 @@ namespace Actions
decHandler(commandNpcHide);
decHandler(commandNpcShow);
decHandler(commandChangePartyLeader);
+ decHandler(commandPartyRecall);
} // namespace Actions
#undef decHandler