diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 21:50:02 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-05 21:50:02 -0600 |
commit | bcc4695387d21f9629ab6f013aadbfe0d238aa6d (patch) | |
tree | 2e095ec94e99e788eb851a37cdf5eae68270424c /src/gui/widgets/chattab.cpp | |
parent | 9078373860729cdf80db8d09cbdee478dc54ec64 (diff) | |
download | mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.gz mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.bz2 mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.tar.xz mana-bcc4695387d21f9629ab6f013aadbfe0d238aa6d.zip |
Implement TMWServ's Admin-, Chat-, and MapHandlers
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index bd0504b5..88d62076 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -30,13 +30,8 @@ #include "gui/recorder.h" #include "gui/scrollarea.h" +#include "net/chathandler.h" #include "net/net.h" -#ifdef TMWSERV_SUPPORT -#include "net/tmwserv/chatserver/chatserver.h" -#include "net/tmwserv/gameserver/player.h" -#else -#include "net/ea/chathandler.h" -#endif #include "resources/iteminfo.h" #include "resources/itemdb.h" @@ -276,12 +271,7 @@ void ChatTab::clearText() } void ChatTab::handleInput(const std::string &msg) { - // Net::getChatHandler()->talk(msg); -#ifdef TMWSERV_SUPPORT - Net::GameServer::Player::say(msg); -#else - chatHandler->talk(msg); -#endif + Net::getChatHandler()->talk(msg); } void ChatTab::handleCommand(std::string msg) |