summaryrefslogtreecommitdiff
path: root/src/net/manaserv/chathandler.cpp
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-01-21 05:12:32 +0800
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-01-21 05:56:14 +0800
commitf263ad5867ce03f585fc9d7145d6c5f3ebbcdb59 (patch)
tree6fcdd4cd3520f195c11669cf9af04ad170823758 /src/net/manaserv/chathandler.cpp
parentd2b77eb41833eb775165a39331d02af83bdb0d8b (diff)
downloadmana-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.cpp3
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);
}