Fixing chat log bug showing all lobby joins regardless to preferences

This commit is contained in:
Thomas Baumhauer 2008-10-22 12:32:51 +00:00
parent 0ab359ffd6
commit 400507d27f

View file

@ -450,6 +450,8 @@ void replay::add_chat_log_entry(const config* speak, std::stringstream& str, con
return;
}
const config& cfg = *speak;
if (!preferences::show_lobby_join(cfg["description"], cfg["message"])) return;
if (preferences::is_ignored(cfg["description"])) return;
const std::string& team_name = cfg["team_name"];
if(team_name == "" || team_name == team) {
if(team_name == "") {