diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-02 17:00:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-02 21:16:56 +0300 |
commit | fb1709d774139b2173da6ee95770abaad23f726e (patch) | |
tree | a6e6530dd623de4f6719a190eb6d9f19da20f027 /src/net/ea/guildhandler.cpp | |
parent | f06505b08060ad0720653fdf21fcc306ca93eb13 (diff) | |
download | manaplus-fb1709d774139b2173da6ee95770abaad23f726e.tar.gz manaplus-fb1709d774139b2173da6ee95770abaad23f726e.tar.bz2 manaplus-fb1709d774139b2173da6ee95770abaad23f726e.tar.xz manaplus-fb1709d774139b2173da6ee95770abaad23f726e.zip |
Some fixes after coverity checks.
Diffstat (limited to 'src/net/ea/guildhandler.cpp')
-rw-r--r-- | src/net/ea/guildhandler.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/net/ea/guildhandler.cpp b/src/net/ea/guildhandler.cpp index e9ec8c97d..129ba931d 100644 --- a/src/net/ea/guildhandler.cpp +++ b/src/net/ea/guildhandler.cpp @@ -552,11 +552,8 @@ void GuildHandler::processGuildMessage(Net::MessageIn &msg) const size_t pos = chatMsg.find(" : ", 0); if (pos != std::string::npos) { - std::string sender_name = ((pos == std::string::npos) - ? "" : chatMsg.substr(0, pos)); - + std::string sender_name = chatMsg.substr(0, pos); chatMsg.erase(0, pos + 3); - trim(chatMsg); guildTab->chatLog(sender_name, chatMsg); } |