diff options
-rw-r--r-- | source.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -365,8 +365,13 @@ int main() { if (advanced) msg += "The only entry left in the previous round was \"" + *advanced + "\", so it advanced. "; msg += "There are " + std::to_string(left_for_this_round.size()) + " entries remaining:"; + std::string msg_backup = msg; for (int i = left_for_this_round.size() - 1; i >= 0; --i) msg += "\n* \"" + left_for_this_round[i] + "\""; + if (msg.size() > 2000) { + msg = std::move(msg_backup); + msg.back() = '.'; + } send_message(msg); } |