summaryrefslogtreecommitdiff
path: root/src/net/eathena/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-05 18:43:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-05 18:43:08 +0300
commitb0361de1fcfc26b4bb497473e9fe1ef0f5013c98 (patch)
treec991970041797901ced68c5c62a53e5911a556ea /src/net/eathena/charserverhandler.cpp
parenta355e8aff74337706d8a0d5cf920809e3ecb975f (diff)
downloadmv-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.tar.gz
mv-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.tar.bz2
mv-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.tar.xz
mv-b0361de1fcfc26b4bb497473e9fe1ef0f5013c98.zip
eathena: add partial support for packet SMSG_CHAR_RENAME 0x028e.
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r--src/net/eathena/charserverhandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp
index 22c9ee849..323fa681c 100644
--- a/src/net/eathena/charserverhandler.cpp
+++ b/src/net/eathena/charserverhandler.cpp
@@ -75,6 +75,7 @@ CharServerHandler::CharServerHandler() :
SMSG_CHAR_MAP_INFO,
SMSG_CHANGE_MAP_SERVER,
SMSG_CHAR_PINCODE_STATUS,
+ SMSG_CHAR_RENAME,
0
};
handledMessages = _messages;
@@ -125,6 +126,10 @@ void CharServerHandler::handleMessage(Net::MessageIn &msg)
processPincodeStatus(msg);
break;
+ case SMSG_CHAR_RENAME:
+ processCharRename(msg);
+ break;
+
default:
break;
}
@@ -482,4 +487,9 @@ void CharServerHandler::renameCharacter(Net::Character *const character,
outMsg.writeString(newName, 24, "name");
}
+void CharServerHandler::processCharRename(Net::MessageIn &msg)
+{
+ msg.readInt16("flag");
+}
+
} // namespace EAthena