diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-21 05:12:32 +0800 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-01-21 05:56:14 +0800 |
commit | f263ad5867ce03f585fc9d7145d6c5f3ebbcdb59 (patch) | |
tree | 6fcdd4cd3520f195c11669cf9af04ad170823758 /src/net/manaserv/chathandler.cpp | |
parent | d2b77eb41833eb775165a39331d02af83bdb0d8b (diff) | |
download | mana-f263ad5867ce03f585fc9d7145d6c5f3ebbcdb59.tar.gz mana-f263ad5867ce03f585fc9d7145d6c5f3ebbcdb59.tar.bz2 mana-f263ad5867ce03f585fc9d7145d6c5f3ebbcdb59.tar.xz mana-f263ad5867ce03f585fc9d7145d6c5f3ebbcdb59.zip |
Clientside fix of switching from /announce to @announce
- Added support for senders of announcement
Reviewed-by: Bjorn.
Diffstat (limited to 'src/net/manaserv/chathandler.cpp')
-rw-r--r-- | src/net/manaserv/chathandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/manaserv/chathandler.cpp b/src/net/manaserv/chathandler.cpp index c3a9c964..9b77c0c4 100644 --- a/src/net/manaserv/chathandler.cpp +++ b/src/net/manaserv/chathandler.cpp @@ -243,8 +243,9 @@ void ChatHandler::handlePrivateMessage(Net::MessageIn &msg) void ChatHandler::handleAnnouncement(Net::MessageIn &msg) { std::string chatMsg = msg.readString(); + std::string sender = msg.readString(); Event event(Event::Announcement); - event.setString("message", chatMsg); + event.setString("message", sender + " : " + chatMsg); event.trigger(Event::ChatChannel); } |