diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-14 12:58:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-14 12:58:06 +0300 |
commit | 84c7b06f58eff82b17fd7ccd6708b9e972b40c60 (patch) | |
tree | 1d4a02a710c14b4167549b3c8a783f9b3c38e2fb /src/gui/popups/popupmenu.cpp | |
parent | b76970dadf4c973180644a2b150729f071ef579a (diff) | |
download | manaplus-84c7b06f58eff82b17fd7ccd6708b9e972b40c60.tar.gz manaplus-84c7b06f58eff82b17fd7ccd6708b9e972b40c60.tar.bz2 manaplus-84c7b06f58eff82b17fd7ccd6708b9e972b40c60.tar.xz manaplus-84c7b06f58eff82b17fd7ccd6708b9e972b40c60.zip |
Remove "kick party" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index ed8adbe1c..4d2b5a7dd 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -483,7 +483,7 @@ void PopupMenu::showPlayerPopup(const std::string &nick) { // TRANSLATORS: popup menu item // TRANSLATORS: kick player from party - mBrowserBox->addRow("kick party", _("Kick from party")); + mBrowserBox->addRow("/kickparty 'NAME'", _("Kick from party")); mBrowserBox->addRow("##3---"); const PartyMember *const o = party->getMember( localPlayer->getName()); @@ -982,22 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "kick party" && being - && being->getType() == ActorType::Player) - { - partyHandler->kick(being); - } - else if (link == "kick party" && !mNick.empty()) - { - if (localPlayer && localPlayer->getParty()) - { - const PartyMember *const member = localPlayer-> - getParty()->getMember(mNick); - if (member) - partyHandler->kick(mNick); - } - } - else if (link == "name" && !mNick.empty()) + if (link == "name" && !mNick.empty()) { const std::string &name = mNick; if (chatWindow) @@ -2465,7 +2450,7 @@ void PopupMenu::addPartyName(const std::string &partyName) { // TRANSLATORS: popup menu item // TRANSLATORS: kick player from party - mBrowserBox->addRow("kick party", _("Kick from party")); + mBrowserBox->addRow("/kickparty 'NAME'", _("Kick from party")); } mBrowserBox->addRow("##3---"); } @@ -2489,7 +2474,7 @@ void PopupMenu::addParty(const std::string &nick) { // TRANSLATORS: popup menu item // TRANSLATORS: kick player from party - mBrowserBox->addRow("kick party", _("Kick from party")); + mBrowserBox->addRow("/kickparty 'NAME'", _("Kick from party")); } mBrowserBox->addRow("##3---"); } |