fix teamchat not marked #3119

This commit is contained in:
gfgtdf 2018-06-09 20:28:39 +02:00 committed by Charles Dang
parent c79e1645c8
commit 25840c8a4b

View file

@ -145,8 +145,7 @@ chat_msg::chat_msg(const config &cfg)
, nick_()
, text_(cfg["message"].str())
{
const std::string& team_name = cfg["team_name"];
if(team_name.empty())
if(cfg["team_name"].empty() && cfg["to_sides"].empty())
{
nick_ = cfg["id"].str();
} else {