Skip to content

Commit

Permalink
fix name error
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-mueser committed Feb 19, 2024
1 parent 3fa5920 commit 5cbf8de
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/handlers/quoteStatsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ module.exports = async (messages) => {

let name = message.content;
name = name.substring(name.indexOf("~") + 1).trimStart();
if (name.charAt(0) === " ") {
name = name.substring(0, name.indexOf(" "));
}
name = name.substring(0, name.indexOf(" "));
if (name.includes(",")) {
name = name.substring(0, name.indexOf(","));
}
Expand Down

0 comments on commit 5cbf8de

Please sign in to comment.