diff options
Diffstat (limited to 'src/net/eathena/charserverhandler.cpp')
-rw-r--r-- | src/net/eathena/charserverhandler.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net/eathena/charserverhandler.cpp b/src/net/eathena/charserverhandler.cpp index b62ff5cf0..22c9ee849 100644 --- a/src/net/eathena/charserverhandler.cpp +++ b/src/net/eathena/charserverhandler.cpp @@ -471,4 +471,15 @@ void CharServerHandler::processCharCreate(Net::MessageIn &msg) BLOCK_END("CharServerHandler::processCharCreate") } +void CharServerHandler::renameCharacter(Net::Character *const character, + const std::string &newName) +{ + if (!character) + return; + + createOutPacket(CMSG_CHAR_RENAME); + outMsg.writeInt32(mSelectedCharacter->dummy->getId(), "char id"); + outMsg.writeString(newName, 24, "name"); +} + } // namespace EAthena |