From 75ddffb8941594a218ec23f86b8c16b5d54b728a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Apr 2015 22:03:51 +0300 Subject: eathena: impliment packet SMSG_CHAT_ROOM_ROLE_CHANGE. --- src/net/eathena/chathandler.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/net/eathena') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index f4dd9c937..6aca795c2 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -959,9 +959,20 @@ void ChatHandler::processChatRoomSettings(Net::MessageIn &msg) void ChatHandler::processChatRoomRoleChange(Net::MessageIn &msg) { - UNIMPLIMENTEDPACKET; - msg.readInt32("role"); - msg.readString(24, "name"); + const int role = msg.readInt32("role"); + const std::string name = msg.readString(24, "name"); + switch(role) + { + case 0: + NotifyManager::notify(NotifyTypes::ROOM_ROLE_OWNER, name); + break; + case 1: + // dont show normal role + break; + default: + UNIMPLIMENTEDPACKET; + break; + } } void ChatHandler::processMVPItem(Net::MessageIn &msg) -- cgit v1.2.3-70-g09d2