diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-29 01:55:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-29 01:55:41 +0300 |
commit | 9956ff63ccfaee02ed68d0125007b90849cc1ee5 (patch) | |
tree | 0cf8ee36f9cd39471590234de1adde3d0edeaf27 /src/actions | |
parent | 60100c4b30f779fe8f63758f9974891e98816340 (diff) | |
download | manaverse-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.gz manaverse-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.bz2 manaverse-9956ff63ccfaee02ed68d0125007b90849cc1ee5.tar.xz manaverse-9956ff63ccfaee02ed68d0125007b90849cc1ee5.zip |
Add chat command /partyrecall. Also add it to npc context menu.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 9 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
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 |