summaryrefslogtreecommitdiff
path: root/src/net/eathena/buyingstorehandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-14 23:28:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-14 23:28:02 +0300
commitc7f54151ba693e7f57378b77cc567d5aa26cf4cf (patch)
tree653165d368da9fc58c9dbb5a8161e4e420a0b37c /src/net/eathena/buyingstorehandler.cpp
parentc26624e72bb8d60bc1fa13cd5a178e06579e49a4 (diff)
downloadmv-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.gz
mv-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.bz2
mv-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.tar.xz
mv-c7f54151ba693e7f57378b77cc567d5aa26cf4cf.zip
Enable publish button in personal buy shop only if it allowed by server.
Diffstat (limited to 'src/net/eathena/buyingstorehandler.cpp')
-rw-r--r--src/net/eathena/buyingstorehandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/buyingstorehandler.cpp b/src/net/eathena/buyingstorehandler.cpp
index 649b2b39e..8781a13ee 100644
--- a/src/net/eathena/buyingstorehandler.cpp
+++ b/src/net/eathena/buyingstorehandler.cpp
@@ -25,6 +25,8 @@
#include "being/being.h"
+#include "listeners/buyingstoreslotslistener.h"
+
#include "net/ea/eaprotocol.h"
#include "net/eathena/messageout.h"
@@ -111,8 +113,7 @@ void BuyingStoreHandler::handleMessage(Net::MessageIn &msg)
void BuyingStoreHandler::processBuyingStoreOpen(Net::MessageIn &msg)
{
- // +++ need create store dialog
- msg.readUInt8("slots");
+ BuyingStoreSlotsListener::distributeEvent(msg.readUInt8("slots"));
}
void BuyingStoreHandler::processBuyingStoreCreateFailed(Net::MessageIn &msg)