Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #569 from Frederikam/bugfix/number-searching
Browse files Browse the repository at this point in the history
Bugfix/number searching
  • Loading branch information
freyacodes authored Mar 3, 2019
2 parents 76c91d0 + 3b1346f commit 337337c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PlayCommand(private val playerLimiter: PlayerLimiter, private val trackSea
return
}

if (TextUtils.isSplitSelect(context.rawArgs)) {
if (TextUtils.isSplitSelect(context.rawArgs) && videoSelectionCache[context.member] != null) {
SelectCommand.select(context, videoSelectionCache)
return
}
Expand Down
2 changes: 1 addition & 1 deletion FredBoat/src/main/java/fredboat/util/TextUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class TextUtils {
.precomputed();

public static final CharMatcher SPLIT_SELECT_ALLOWED =
SPLIT_SELECT_SEPARATOR.or(CharMatcher.inRange('0', '9'))
SPLIT_SELECT_SEPARATOR.or(CharMatcher.inRange('1', '5'))
.precomputed();

public static final Splitter COMMA_OR_WHITESPACE = Splitter.on(SPLIT_SELECT_SEPARATOR)
Expand Down

0 comments on commit 337337c

Please sign in to comment.