summaryrefslogtreecommitdiff
path: root/source.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source.cpp')
-rw-r--r--source.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source.cpp b/source.cpp
index 9b5a122..dc5b39a 100644
--- a/source.cpp
+++ b/source.cpp
@@ -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);
}