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

Commit

Permalink
Merge pull request #65 from AliLogic/patch-1
Browse files Browse the repository at this point in the history
Updated length checks for status and details.
  • Loading branch information
Andrew authored Sep 1, 2018
2 parents cced404 + b44336c commit be829db
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 be829db

Please sign in to comment.