diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-01 15:40:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-01 15:40:45 +0300 |
commit | c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158 (patch) | |
tree | d5e06d87250dd4be2a70b672eaea7145396d5dc5 /src/actions | |
parent | 5f4951d34c52e92ddd38606b140e8dcded25448c (diff) | |
download | manaplus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.gz manaplus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.bz2 manaplus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.tar.xz manaplus-c9a0a01ffff11b23c517cc2d0c6a08a83c7a8158.zip |
Add chat command /guildrecall. Also add it to player 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 a163ad5ab..9e70c55de 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1533,4 +1533,13 @@ impHandler(commandBreakGuild) return true; } +impHandler(commandGuildRecall) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->guildRecall(args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index e314226cb..41db1e042 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -137,6 +137,7 @@ namespace Actions decHandler(commandChangePartyLeader); decHandler(commandPartyRecall); decHandler(commandBreakGuild); + decHandler(commandGuildRecall); } // namespace Actions #undef decHandler |