diff options
-rw-r--r-- | src/gui/popupmenu.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 9f3ecc7d..3450f4a5 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -87,6 +87,10 @@ void PopupMenu::showPopup(int x, int y, Being *being) mBrowserBox->addRow(strprintf("@@attack|%s@@", strprintf(_("Attack %s"), name.c_str()).c_str())); + // TRANSLATORS: Whispering a player. + mBrowserBox->addRow(strprintf("@@whisper|%s@@", + strprintf(_("Whisper %s"), + name.c_str()).c_str())); mBrowserBox->addRow("##3---"); @@ -220,6 +224,10 @@ void PopupMenu::handleLink(const std::string &link) { player_node->attack(being, true); } + else if (link == "whisper" && being) + { + chatWindow->addInputText("/w \"" + being->getName() + "\" "); + } else if (link == "unignore" && being && being->getType() == Being::PLAYER) |