summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 4d2b5a7dd..56da65cc6 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -368,7 +368,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
}
// TRANSLATORS: popup menu item
// TRANSLATORS: add being name to chat
- mBrowserBox->addRow("name", _("Add name to chat"));
+ mBrowserBox->addRow("/addtext 'NAME'", _("Add name to chat"));
mBrowserBox->addRow("##3---");
// TRANSLATORS: popup menu item
@@ -532,7 +532,7 @@ void PopupMenu::showPlayerPopup(const std::string &nick)
addBuySellDefault();
// TRANSLATORS: popup menu item
// TRANSLATORS: add player name to chat
- mBrowserBox->addRow("name", _("Add name to chat"));
+ mBrowserBox->addRow("/addtext 'NAME'", _("Add name to chat"));
mBrowserBox->addRow("##3---");
// TRANSLATORS: popup menu item
// TRANSLATORS: close menu
@@ -982,15 +982,9 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "name" && !mNick.empty())
- {
- const std::string &name = mNick;
- if (chatWindow)
- chatWindow->addInputText(name);
- }
- else if (link == "admin-kick" && being &&
- (being->getType() == ActorType::Player ||
- being->getType() == ActorType::Monster))
+ if (link == "admin-kick" && being &&
+ (being->getType() == ActorType::Player ||
+ being->getType() == ActorType::Monster))
{
adminHandler->kick(being->getId());
}