summaryrefslogtreecommitdiff
path: root/src/net/tmwa/chathandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-30 02:05:40 +0300
committerAndrei Karas <akaras@inbox.ru>2012-04-01 03:11:26 +0300
commita39f63cdfa5ce15b22f294a8bb1db3a036ce462d (patch)
tree4de71bde947cae0cf5d3196cd97e82f5bc537c5c /src/net/tmwa/chathandler.cpp
parent02ec4369acfbf261236631e20dbb76131e7889f8 (diff)
downloadplus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.tar.gz
plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.tar.bz2
plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.tar.xz
plus-a39f63cdfa5ce15b22f294a8bb1db3a036ce462d.zip
One part of fixes after auto checking.
Diffstat (limited to 'src/net/tmwa/chathandler.cpp')
-rw-r--r--src/net/tmwa/chathandler.cpp9
1 files changed, 3 insertions, 6 deletions
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)