fix teamchat not marked #3119

(cherry-picked from commit 25840c8a4bdfa1bd7b93069ba9fc2562eca39910)
This commit is contained in:
gfgtdf 2018-06-09 20:28:39 +02:00 committed by Charles Dang
parent 758fe79fe2
commit 9aef0f923e

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 {