summaryrefslogtreecommitdiff
path: root/src/gui/widgets/whispertab.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-05 21:50:02 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-05 21:50:02 -0600
commitbcc4695387d21f9629ab6f013aadbfe0d238aa6d (patch)
tree2e095ec94e99e788eb851a37cdf5eae68270424c /src/gui/widgets/whispertab.cpp
parent9078373860729cdf80db8d09cbdee478dc54ec64 (diff)
downloadMana-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/whispertab.cpp')
-rw-r--r--src/gui/widgets/whispertab.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/gui/widgets/whispertab.cpp b/src/gui/widgets/whispertab.cpp
index a641f0ad..d69a495c 100644
--- a/src/gui/widgets/whispertab.cpp
+++ b/src/gui/widgets/whispertab.cpp
@@ -25,12 +25,8 @@
#include "gui/palette.h"
+#include "net/chathandler.h"
#include "net/net.h"
-#ifdef TMWSERV_SUPPORT
-#include "net/tmwserv/chatserver/chatserver.h"
-#else
-#include "net/ea/chathandler.h"
-#endif
#include "utils/gettext.h"
#include "utils/strprintf.h"
@@ -53,12 +49,7 @@ void WhisperTab::handleInput(const std::string &msg) {
return;
}
- // Net::getChatHandler()->privateMessage(mNick, msg);
-#ifdef TMWSERV_SUPPORT
- Net::ChatServer::privMsg(mNick, msg);
-#else
- chatHandler->privateMessage(mNick, msg);
-#endif
+ Net::getChatHandler()->privateMessage(mNick, msg);
chatLog(strprintf(_("%s: %s"), player_node->getName().c_str(),
msg.c_str()), BY_PLAYER, false);