fix teamchat not marked #3119

This commit is contained in:
gfgtdf 2018-06-09 20:28:39 +02:00
parent 69f026fd65
commit c9b713f47e

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 {