From a39f63cdfa5ce15b22f294a8bb1db3a036ce462d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Mar 2012 02:05:40 +0300 Subject: One part of fixes after auto checking. --- src/net/tmwa/chathandler.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/net/tmwa/chathandler.cpp') diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 7830d3a81..2323631cb 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -172,12 +172,9 @@ void ChatHandler::sendRaw(const std::string &args) line = line.substr(pos + 1); pos = line.find(" "); } - if (outMsg) - { - if (line != "") - processRaw(*outMsg, line); - delete outMsg; - } + if (line != "") + processRaw(*outMsg, line); + delete outMsg; } void ChatHandler::processRaw(MessageOut &outMsg, std::string &line) -- cgit v1.2.3-60-g2f50