From f567410dc7cdcf888dc4a5fa6e3e50cb8d659e80 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Dec 2014 13:44:19 +0300 Subject: Remove "name" popup menu handler. --- src/gui/popups/popupmenu.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') 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()); } -- cgit v1.2.3-70-g09d2