summaryrefslogtreecommitdiff
path: root/src/net/eathena/bankhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/bankhandler.cpp')
-rw-r--r--src/net/eathena/bankhandler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/bankhandler.cpp b/src/net/eathena/bankhandler.cpp
index bc393faa1..7b4d849dd 100644
--- a/src/net/eathena/bankhandler.cpp
+++ b/src/net/eathena/bankhandler.cpp
@@ -39,6 +39,7 @@ BankHandler::BankHandler() :
{
static const uint16_t _messages[] =
{
+ SMSG_BANK_STATUS,
0
};
handledMessages = _messages;
@@ -49,6 +50,10 @@ void BankHandler::handleMessage(Net::MessageIn &msg)
{
switch (msg.getId())
{
+ case SMSG_BANK_STATUS:
+ processBankStatus(msg);
+ break;
+
default:
break;
}
@@ -74,4 +79,10 @@ void BankHandler::check() const
outMsg.writeInt32(0, "account id");
}
+void BankHandler::processBankStatus(Net::MessageIn &msg)
+{
+ msg.readInt64("money");
+ msg.readInt16("reason");
+}
+
} // namespace EAthena