From f441bb5b1dbb6ea579d7628f39bdd1f53787756e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Dec 2014 23:22:41 +0300 Subject: Remove "friend" popup menu handler. --- src/gui/popups/popupmenu.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index ec79231f1..c0fd3ee67 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -979,17 +979,8 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "friend" && being && - being->getType() == ActorType::Player) - { - player_relations.setRelation(being->getName(), PlayerRelation::FRIEND); - } - else if (link == "friend" && !mNick.empty()) - { - player_relations.setRelation(mNick, PlayerRelation::FRIEND); - } // Guild action - else if (link == "guild" && !mNick.empty()) + if (link == "guild" && !mNick.empty()) { if (localPlayer) { @@ -2596,7 +2587,7 @@ void PopupMenu::addPlayerRelation(const std::string &name) case PlayerRelation::NEUTRAL: // TRANSLATORS: popup menu item // TRANSLATORS: add player to friends list - mBrowserBox->addRow("friend", _("Be friend")); + mBrowserBox->addRow("/friend 'NAME'", _("Be friend")); addNormalRelations(); break; -- cgit v1.2.3-70-g09d2