summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-26 15:59:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-26 15:59:27 +0300
commit662ea582cd57827475062fb6b728da6c21c14181 (patch)
tree1dc38343871d3e36d09a16ee2d85d95ae81da3e0 /src/actions
parentffe1b11e981112a662669358863805fabe14e94c (diff)
downloadplus-662ea582cd57827475062fb6b728da6c21c14181.tar.gz
plus-662ea582cd57827475062fb6b728da6c21c14181.tar.bz2
plus-662ea582cd57827475062fb6b728da6c21c14181.tar.xz
plus-662ea582cd57827475062fb6b728da6c21c14181.zip
Move chat command /pricesave into actions.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp10
-rw-r--r--src/actions/actions.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 916bde3c2..97c792470 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -625,4 +625,14 @@ impHandler0(priceLoad)
return false;
}
+impHandler0(priceSave)
+{
+ if (shopWindow)
+ {
+ shopWindow->saveList();
+ return true;
+ }
+ return false;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index 5cd21a9d8..4e0155556 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -62,6 +62,7 @@ namespace Actions
decHandler(attackHuman);
decHandler(trade);
decHandler(priceLoad);
+ decHandler(priceSave);
} // namespace Actions
#undef decHandler