summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendinghandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/vendinghandler.cpp')
-rw-r--r--src/net/eathena/vendinghandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/vendinghandler.cpp b/src/net/eathena/vendinghandler.cpp
index ea9ddeda6..d38f2d102 100644
--- a/src/net/eathena/vendinghandler.cpp
+++ b/src/net/eathena/vendinghandler.cpp
@@ -34,6 +34,7 @@ VendingHandler::VendingHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_VENDING_OPEN_REQ,
0
};
handledMessages = _messages;
@@ -44,9 +45,18 @@ void VendingHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_VENDING_OPEN_REQ:
+ processOpenReq(msg);
+ break;
+
default:
break;
}
}
+void VendingHandler::processOpenReq(Net::MessageIn &msg)
+{
+ msg.readInt16("slots allowed");
+}
+
} // namespace EAthena