summaryrefslogtreecommitdiff
path: root/src/gui/widgets/channeltab.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/channeltab.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/channeltab.cpp')
-rw-r--r--src/gui/widgets/channeltab.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/gui/widgets/channeltab.cpp b/src/gui/widgets/channeltab.cpp
index 6425293c..edc0473c 100644
--- a/src/gui/widgets/channeltab.cpp
+++ b/src/gui/widgets/channeltab.cpp
@@ -23,12 +23,8 @@
#include "channel.h"
-#ifdef TMWSERV_SUPPORT
-#include "net/tmwserv/chatserver/chatserver.h"
-#include "net/tmwserv/gameserver/player.h"
-#else
-
-#endif
+#include "net/chathandler.h"
+#include "net/net.h"
ChannelTab::ChannelTab(Channel *channel) : ChatTab(channel->getName()),
mChannel(channel)
@@ -41,7 +37,5 @@ ChannelTab::~ChannelTab()
}
void ChannelTab::handleInput(const std::string &msg) {
-#ifdef TMSERV_SUPPORT
- Net::ChatServer::chat(getId(), msg);
-#endif
+ Net::getChatHandler()->sendToChannel(getChannel()->getId(), msg);
}