diff options
Diffstat (limited to 'src/account-server/serverhandler.cpp')
-rw-r--r-- | src/account-server/serverhandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp index 1c4a5219..23f2cd32 100644 --- a/src/account-server/serverhandler.cpp +++ b/src/account-server/serverhandler.cpp @@ -544,6 +544,15 @@ void GameServerHandler::syncDatabase(MessageIn &msg) int SkillValue = msg.readLong(); storage->updateExperience(CharId, SkillId, SkillValue); } break; + + case SYNC_ONLINE_STATUS: + { + LOG_DEBUG("received SYNC_ONLINE_STATUS"); + int CharId = msg.readLong(); + bool online; + msg.readByte() == 0x00 ? online = false : online = true; + storage->setOnlineStatus(CharId, online); + } } // read next message type from buffer |