summaryrefslogtreecommitdiff
path: root/src/net/eathena/chathandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r--src/net/eathena/chathandler.cpp17
1 files changed, 14 insertions, 3 deletions
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)