Skip to content

Commit

Permalink
Merge pull request #58 from kobi32768/fix-57
Browse files Browse the repository at this point in the history
fix: force option detection now considers newline
  • Loading branch information
Sayamame-beans authored Jun 30, 2024
2 parents 566a242 + 81c03e4 commit ed12db5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/io/github/kobi32768/quotebot/Utility.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ fun List<String>.containsAny(vararg substring: String): Boolean {
}

fun MessageReceivedEvent.isForce(): Boolean {
return this.message.contentDisplay.split(' ').containsAny("-f", "--force")
return this.message.contentDisplay.split(' ', '\n').containsAny("-f", "--force")
}

fun compress64(id: String): String {
Expand Down

0 comments on commit ed12db5

Please sign in to comment.