summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-27 13:12:24 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-27 13:13:03 -0600
commit74f23fd3d0e1fb3be8e5419193d57d91746c887a (patch)
tree2715ae060ccd76f1b472dee3b9086e169d0e6926 /src/commandhandler.cpp
parent795cec6e276e7f5df8a25bd8306e6fd87c826502 (diff)
downloadmana-client-74f23fd3d0e1fb3be8e5419193d57d91746c887a.tar.gz
mana-client-74f23fd3d0e1fb3be8e5419193d57d91746c887a.tar.bz2
mana-client-74f23fd3d0e1fb3be8e5419193d57d91746c887a.tar.xz
mana-client-74f23fd3d0e1fb3be8e5419193d57d91746c887a.zip
Clean up chat and chat tabs some more
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 7ccd7d80..14c5434a 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -339,12 +339,6 @@ void CommandHandler::handleWho()
void CommandHandler::handleMsg(const std::string &args)
{
-#ifdef TMWSERV_SUPPORT
- std::string::size_type pos = args.find(' ');
- std::string recipient(args, 0, pos);
- std::string text(args, pos+1);
- Net::ChatServer::privMsg(recipient, text);
-#else
std::string recvnick = "";
std::string msg = "";
@@ -391,7 +385,6 @@ void CommandHandler::handleMsg(const std::string &args)
}
else
localChatTab->chatLog("Cannont send empty whispers!");
-#endif
}
void CommandHandler::handleClear()
@@ -547,10 +540,7 @@ void CommandHandler::handleParty(const std::string &args)
void CommandHandler::handleMe(const std::string &args)
{
std::string action = strprintf("*%s*", args.c_str());
- chatWindow->chatSend(action);
- //std::stringstream actionStr;
- //actionStr << "*" << args << "*";
- //chatWindow->chatSend(actionStr.str());
+ chatWindow->chatInput(action);
}
void CommandHandler::handleRecord(const std::string &args)