From b44336c78fb07ae07d49f2b37bf2bc18555558c0 Mon Sep 17 00:00:00 2001 From: Ali <22447370+AliLogic@users.noreply.github.com> Date: Sat, 1 Sep 2018 02:23:43 +0500 Subject: [PATCH] Update discord.cpp --- discord.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/discord.cpp b/discord.cpp index 03c275f..689abe4 100644 --- a/discord.cpp +++ b/discord.cpp @@ -40,12 +40,11 @@ void updatePresence(config_t *c) { // make sure required parameters are set, if not dont update untill they are // corrected - // TODO: find the actual character limit for state and details - if (c->state.length() < 1 || c->state.length() > 100) { + if (c->state.length() < 1 || c->state.length() > 128) { printf("\nState parameter is too long or not set\n"); return; } - if (c->details.length() < 1 || c->details.length() > 100) { + if (c->details.length() < 1 || c->details.length() > 128) { printf("\nDetails parameter is too long or not set\n"); return; }