summaryrefslogtreecommitdiff
path: root/src/net/manaserv/chathandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2010-08-04 20:38:04 -0600
committerJared Adams <jaxad0127@gmail.com>2010-08-04 21:00:29 -0600
commit154ea41225505eee0c77652a04738d845a2e93cd (patch)
tree295b39f2881d85c26b51d7187cd4c8aab51de53e /src/net/manaserv/chathandler.cpp
parent7773f04b4beb1a24214fe1a367b645a689d2c852 (diff)
downloadmana-154ea41225505eee0c77652a04738d845a2e93cd.tar.gz
mana-154ea41225505eee0c77652a04738d845a2e93cd.tar.bz2
mana-154ea41225505eee0c77652a04738d845a2e93cd.tar.xz
mana-154ea41225505eee0c77652a04738d845a2e93cd.zip
Remove some unused headers and fix some chat events
Reviewed-by: Chuck Miller
Diffstat (limited to 'src/net/manaserv/chathandler.cpp')
-rw-r--r--src/net/manaserv/chathandler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/manaserv/chathandler.cpp b/src/net/manaserv/chathandler.cpp
index aabe8bb4..9a8f6e34 100644
--- a/src/net/manaserv/chathandler.cpp
+++ b/src/net/manaserv/chathandler.cpp
@@ -28,8 +28,6 @@
#include "channelmanager.h"
#include "eventmanager.h"
-#include "gui/chat.h"
-
#include "gui/widgets/channeltab.h"
#include "net/manaserv/connection.h"
@@ -167,6 +165,9 @@ void ChatHandler::handleGameChatMessage(Net::MessageIn &msg)
Mana::Event event(being == player_node ? "Player" : "Being");
event.setString("message", mes);
+ event.setString("text", chatMsg);
+ event.setString("nick", being->getName());
+ event.setInt("beingId", id);
Mana::EventManager::trigger("Chat", event);
}