Write new line character sequence at end of print()

Fix regression of commit

5e507c9829 "Add server side ncurses terminal"

where no line termination character was printed after a
lua print outside of terminal mode.

Fixes #3350.
master
est31 2015-11-08 22:23:16 +01:00
parent 6f95bb1ef3
commit 4ae6e509ff
1 changed files with 1 additions and 1 deletions

View File

@ -1473,7 +1473,7 @@ void Server::printToConsoleOnly(const std::string &text)
m_admin_chat->outgoing_queue.push_back(
new ChatEventChat("", utf8_to_wide(text)));
} else {
std::cout << text;
std::cout << text << std::endl;
}
}