From 21c3f5de7d6a0e4825383948080fd208639ccae4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 22:08:50 +0300 Subject: Remove "party" popup menu handler. --- src/gui/popups/popupmenu.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 261968739..ed8adbe1c 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,13 +982,8 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "party" && being && - being->getType() == ActorType::Player) - { - partyHandler->invite(being->getName()); - } - else if (link == "kick party" && being - && being->getType() == ActorType::Player) + if (link == "kick party" && being + && being->getType() == ActorType::Player) { partyHandler->kick(being); } @@ -2464,7 +2459,7 @@ void PopupMenu::addPartyName(const std::string &partyName) { // TRANSLATORS: popup menu item // TRANSLATORS: invite player to party - mBrowserBox->addRow("party", _("Invite to party")); + mBrowserBox->addRow("/party 'NAME'", _("Invite to party")); } else { @@ -2488,7 +2483,7 @@ void PopupMenu::addParty(const std::string &nick) { // TRANSLATORS: popup menu item // TRANSLATORS: invite player to party - mBrowserBox->addRow("party", _("Invite to party")); + mBrowserBox->addRow("/party 'NAME'", _("Invite to party")); } else { -- cgit v1.2.3-70-g09d2