summaryrefslogtreecommitdiff
path: root/src/guildmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r--src/guildmanager.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp
index eb56c2fc0..180758cf7 100644
--- a/src/guildmanager.cpp
+++ b/src/guildmanager.cpp
@@ -431,8 +431,7 @@ bool GuildManager::process(std::string msg)
const size_t pos = msg.find(": ", 0);
if (pos != std::string::npos)
{
- const std::string sender_name = ((pos == std::string::npos)
- ? "" : msg.substr(0, pos));
+ const std::string sender_name = msg.substr(0, pos);
if (!guild->getMember(sender_name))
{
mTab->chatLog(msg);