summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-04 17:46:11 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:57 +0300
commit66c15abcf5af44cde75372a8089ac664f9308794 (patch)
tree928b58569bbcb5656ddce458d48bff14669051ae /src/net/eathena
parente9cc6c1f66ef9fceafa1787616c981f656502bf0 (diff)
downloadplus-66c15abcf5af44cde75372a8089ac664f9308794.tar.gz
plus-66c15abcf5af44cde75372a8089ac664f9308794.tar.bz2
plus-66c15abcf5af44cde75372a8089ac664f9308794.tar.xz
plus-66c15abcf5af44cde75372a8089ac664f9308794.zip
Move processTradeRequest from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/tradehandler.cpp5
-rw-r--r--src/net/eathena/tradehandler.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/net/eathena/tradehandler.cpp b/src/net/eathena/tradehandler.cpp
index 1e71d4a43..1d9fabaa0 100644
--- a/src/net/eathena/tradehandler.cpp
+++ b/src/net/eathena/tradehandler.cpp
@@ -146,4 +146,9 @@ void TradeHandler::cancel() const
MessageOut outMsg(CMSG_TRADE_CANCEL_REQUEST);
}
+void TradeHandler::processTradeRequest(Net::MessageIn &msg) const
+{
+ processTradeRequestContinue(msg.readString(24, "name"));
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/tradehandler.h b/src/net/eathena/tradehandler.h
index 16a7669e2..eb50d65c0 100644
--- a/src/net/eathena/tradehandler.h
+++ b/src/net/eathena/tradehandler.h
@@ -53,6 +53,9 @@ class TradeHandler final : public MessageHandler, public Ea::TradeHandler
void finish() const override final;
void cancel() const override final;
+
+ protected:
+ void processTradeRequest(Net::MessageIn &msg) const;
};
} // namespace EAthena