diff options
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/eathena/searchstorehandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/searchstorehandler.h | 2 |
3 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index a6e193ccc..1128172a0 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -567,5 +567,6 @@ #define CMSG_SEARCHSTORE_SEARCH 0x0819 #define CMSG_SEARCHSTORE_NEXT_PAGE 0x0940 +#define CMSG_SEARCHSTORE_CLOSE 0x083b #endif // NET_EATHENA_PROTOCOL_H diff --git a/src/net/eathena/searchstorehandler.cpp b/src/net/eathena/searchstorehandler.cpp index 8288dc0ab..fdea20615 100644 --- a/src/net/eathena/searchstorehandler.cpp +++ b/src/net/eathena/searchstorehandler.cpp @@ -89,6 +89,11 @@ void SearchStoreHandler::nextPage() const createOutPacket(CMSG_SEARCHSTORE_NEXT_PAGE); } +void SearchStoreHandler::close() const +{ + createOutPacket(CMSG_SEARCHSTORE_CLOSE); +} + void SearchStoreHandler::processSearchAck(Net::MessageIn &msg) { const int count = (msg.readInt16("len") - 7) / 106; diff --git a/src/net/eathena/searchstorehandler.h b/src/net/eathena/searchstorehandler.h index 731639e51..2b2f5af08 100644 --- a/src/net/eathena/searchstorehandler.h +++ b/src/net/eathena/searchstorehandler.h @@ -44,6 +44,8 @@ class SearchStoreHandler final : public MessageHandler, void nextPage() const override final; + void close() const override final; + protected: static void processSearchAck(Net::MessageIn &msg); |