summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-01 15:40:45 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-01 15:40:45 +0300
commitc9a0a01ffff11b23c517cc2d0c6a08a83c7a8158 (patch)
treed5e06d87250dd4be2a70b672eaea7145396d5dc5 /src/gui/popups/popupmenu.cpp
parent5f4951d34c52e92ddd38606b140e8dcded25448c (diff)
downloadmanaplus-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/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index dae11fd12..101072d58 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -2771,12 +2771,22 @@ void PopupMenu::showPlayerGMCommands(const std::string &name)
{
Being *const being = actorManager->findBeingByName(name,
ActorType::Player);
- if (being && !being->getPartyName().empty())
+ if (being)
{
- mBrowserBox->addRow("/partyrecall 'PARTY'",
- // TRANSLATORS: popup menu item
- // TRANSLATORS: recall all party to player location
- _("Recall party"));
+ if (!being->getPartyName().empty())
+ {
+ mBrowserBox->addRow("/partyrecall 'PARTY'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: recall all party members to player location
+ _("Recall party"));
+ }
+ if (!being->getGuildName().empty())
+ {
+ mBrowserBox->addRow("/guildrecall 'PARTY'",
+ // TRANSLATORS: popup menu item
+ // TRANSLATORS: recall all guild members to player location
+ _("Recall guild"));
+ }
}
if (localPlayer && localPlayer->isInParty())
{