aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java')
-rw-r--r--juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java b/juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java
index ad35a4c2..d4548c17 100644
--- a/juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java
+++ b/juick-commands/src/main/java/com/juick/command/ShowSubscriptions.java
@@ -1,7 +1,6 @@
package com.juick.command;
import com.juick.User;
-import com.juick.server.protocol.ProtocolListener;
import com.juick.service.SubscriptionService;
import com.juick.service.UserService;
import lombok.Getter;
@@ -39,7 +38,7 @@ public class ShowSubscriptions implements Command {
}
@Override
- public String execute(User sender, ProtocolListener protocolListener, String command) {
+ public String execute(User sender, MessageListener protocolListener, String command) {
List<User> friends = getUserService().getUserFriends(sender.getUid());
List<String> tags = getSubscriptionService().getSubscribedTags(sender);
String msg = friends.size() > 0 ? "You are subscribed to users:" + friends.stream().map(u -> "\n@" + u.getName())