add two (commented out atm, waiting for string unfrozing)...

...strings to new lobby to deal with room joins/parts.
This commit is contained in:
Tomasz Śniatowski 2009-11-14 01:25:54 +01:00
parent f5ccfe6b1f
commit 2c553d4dee

View file

@ -996,6 +996,11 @@ void tlobby_main::process_room_join(const config &data)
}
} else {
r->add_member(player);
/* TODO: Uncomment after stringfreeze is lifted, add/use preference
utils::string_map symbols;
symbols["player"] = player;
add_room_window_message(room, "server", vgettext("$player has entered the room", symbols));
*/
}
if (r == active_window_room()) {
update_playerlist();
@ -1030,6 +1035,11 @@ void tlobby_main::process_room_part(const config &data)
room_info* r = lobby_info_.get_room(room);
if (r) {
r->remove_member(player);
/* TODO: Uncomment after stringfreeze is lifted, add/use preference
utils::string_map symbols;
symbols["player"] = player;
add_room_window_message(room, "server", vgettext("$player has left the room", symbols));
*/
if (active_window_room() == r) {
update_playerlist();
}