summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-11 02:37:15 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-11 02:37:15 +0300
commit3f93a5c9fbe8f4d42d5cb25364b3bf16b59963ab (patch)
treece02f79d991f526ca8f78d58564cdcaa5db53d67 /src/gui/popups/popupmenu.cpp
parent9ac735047746b9455a896b6fe82da36ea4b13ceb (diff)
downloadplus-3f93a5c9fbe8f4d42d5cb25364b3bf16b59963ab.tar.gz
plus-3f93a5c9fbe8f4d42d5cb25364b3bf16b59963ab.tar.bz2
plus-3f93a5c9fbe8f4d42d5cb25364b3bf16b59963ab.tar.xz
plus-3f93a5c9fbe8f4d42d5cb25364b3bf16b59963ab.zip
Extend undress chat command for undress item by id.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index ce8795b4f..4218a1101 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -1238,10 +1238,6 @@ void PopupMenu::handleLink(const std::string &link,
dialog->setActionEventId("ok");
dialog->addActionListener(&mPlayerListener);
}
- else if (link == "undress item" && being && mItemId)
- {
- being->undressItemById(mItemId);
- }
else if (link == "guild-pos" && !mName.empty())
{
showChangePos(getX(), getY());
@@ -2103,7 +2099,7 @@ void PopupMenu::showUndressPopup(const int x, const int y,
// TRANSLATORS: popup menu item
// TRANSLATORS: undress item from player
- mBrowserBox->addRow("undress item", _("Undress"));
+ mBrowserBox->addRow("/undress :'BEINGID' 'ITEMID'", _("Undress"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add item name to chat
mBrowserBox->addRow("/addchat 'ITEMID''CARDS'", _("Add to chat"));