diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-10-08 02:04:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-10-08 02:04:33 +0300 |
commit | 96d877fa2b9bbec546b83cbbc6d16664116e1fb9 (patch) | |
tree | 5b75c3f10217c8515a8e2809892f7526e6efd66f /src/net/tmwa/chathandler.cpp | |
parent | 29187a2582c04e3ede63f9c58f09dbbe34834a30 (diff) | |
download | plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.gz plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.bz2 plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.tar.xz plus-96d877fa2b9bbec546b83cbbc6d16664116e1fb9.zip |
Add checks and fix code style.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 90acf0f90..4e4318595 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -107,7 +107,6 @@ void ChatHandler::talk(const std::string &text) return; std::string mes = player_node->getName() + " : " + text; -// std::string mes = player_node->getName() + "zzzz : " + text; MessageOut outMsg(CMSG_CHAT_MESSAGE); // Added + 1 in order to let eAthena parse admin commands correctly @@ -227,7 +226,7 @@ void ChatHandler::processRaw(MessageOut &outMsg, std::string &line) if (pos != std::string::npos) { unsigned short x = static_cast<unsigned short>( - atoi(data.substr(0, pos).c_str())); + atoi(data.substr(0, pos).c_str())); data = data.substr(pos + 1); pos = line.find(","); if (pos == std::string::npos) |