Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

Commit

Permalink
Update discord.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AliLogic authored Aug 31, 2018
1 parent cced404 commit b44336c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions discord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b44336c

Please sign in to comment.