summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 18:48:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 18:48:32 +0300
commitb07ac409f1940d3767c8e4ade0990d11d2d38b96 (patch)
tree7cafd1aad2a39737726a4f83edfb20f6c89e6c23 /src/gui/popups/popupmenu.cpp
parent8982d886b218bdda87824301771de2cca6513870 (diff)
downloadplus-b07ac409f1940d3767c8e4ade0990d11d2d38b96.tar.gz
plus-b07ac409f1940d3767c8e4ade0990d11d2d38b96.tar.bz2
plus-b07ac409f1940d3767c8e4ade0990d11d2d38b96.tar.xz
plus-b07ac409f1940d3767c8e4ade0990d11d2d38b96.zip
Remove "npc whisper" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 82c1807c6..625d6822e 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -257,7 +257,8 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
{
// TRANSLATORS: popup menu item
// TRANSLATORS: whisper to npc
- mBrowserBox->addRow("npc whisper", _("Whisper"));
+ mBrowserBox->addRow("/whispertext NPC:'NAME'",
+ _("Whisper"));
}
// TRANSLATORS: popup menu item
// TRANSLATORS: buy from npc
@@ -981,22 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "npc whisper" && !mNick.empty())
- {
- if (chatWindow)
- {
- if (config.getBoolValue("whispertab"))
- {
- chatWindow->localChatInput("/q NPC:" + mNick);
- }
- else
- {
- chatWindow->addInputText(std::string("/w \"NPC:").append(
- mNick).append("\" "));
- }
- }
- }
- else if (link == "move" && !mNick.empty())
+ if (link == "move" && !mNick.empty())
{
if (localPlayer)
{