summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp13
1 files 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;