aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-03 15:38:05 +0300
committerGravatar Vitaly Takmazov2018-05-03 15:38:05 +0300
commit937445c7e56a7bc9353e5aec1a0941c97b0f1386 (patch)
treee4602392753c06e0f769acc38d0c4cf1cd8db630 /juick-common/src/main/java
parenteeb59ea1f2e2bd4307573d01238c8c4ce35d4179 (diff)
server: case-insensitive subscriptions command
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r--juick-common/src/main/java/com/juick/server/CommandsManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/server/CommandsManager.java b/juick-common/src/main/java/com/juick/server/CommandsManager.java
index 51051b7b..1907bde7 100644
--- a/juick-common/src/main/java/com/juick/server/CommandsManager.java
+++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java
@@ -251,7 +251,7 @@ public class CommandsManager {
.map(t -> String.format("\n*%s - %d", t.getTag().getName(), t.getUsageCount())).collect(Collectors.joining());
return CommandResult.fromString(msg);
}
- @UserCommand(pattern = "S", help = "S - Show your subscriptions")
+ @UserCommand(pattern = "S", help = "S - Show your subscriptions", patternFlags = Pattern.CASE_INSENSITIVE)
public CommandResult commandSubscriptions(User currentUser, URI attachment, String... args) {
List<User> friends = userService.getUserFriends(currentUser.getUid());
List<String> tags = subscriptionService.getSubscribedTags(currentUser);