summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-21 18:43:26 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-21 18:43:26 +0300
commitd8a7eaa14ef0fad24e19f6363db708a397f7f98b (patch)
treefdf3f32c4c300be74c3371bd47a60d84fdd70ff8 /src/actions
parent529d5ac21229ba7678bba9832f69448898b159b9 (diff)
downloadplus-d8a7eaa14ef0fad24e19f6363db708a397f7f98b.tar.gz
plus-d8a7eaa14ef0fad24e19f6363db708a397f7f98b.tar.bz2
plus-d8a7eaa14ef0fad24e19f6363db708a397f7f98b.tar.xz
plus-d8a7eaa14ef0fad24e19f6363db708a397f7f98b.zip
Allow copy items from outfit into chat.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp11
-rw-r--r--src/actions/commands.h1
2 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 4f809411c..df86fefc2 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1888,4 +1888,15 @@ impHandler(partyAutoItemShare)
return true;
}
+impHandler0(outfitToChat)
+{
+ if (!outfitWindow || !chatWindow)
+ return false;
+
+ const std::string str = outfitWindow->getOutfitString();
+ if (!str.empty())
+ chatWindow->addInputText(str);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 627390860..3cf383f74 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -152,6 +152,7 @@ namespace Actions
decHandler(partyItemShare);
decHandler(partyExpShare);
decHandler(partyAutoItemShare);
+ decHandler(outfitToChat);
} // namespace Actions
#undef decHandler