aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/LastMessages.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/LastMessages.java')
-rw-r--r--juick-commands/src/main/java/com/juick/command/LastMessages.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/LastMessages.java b/juick-commands/src/main/java/com/juick/command/LastMessages.java
index 77ba8a81..871348de 100644
--- a/juick-commands/src/main/java/com/juick/command/LastMessages.java
+++ b/juick-commands/src/main/java/com/juick/command/LastMessages.java
@@ -2,7 +2,6 @@ package com.juick.command;
import com.juick.User;
import com.juick.formatters.PlainTextFormatter;
-import com.juick.server.protocol.ProtocolListener;
import com.juick.service.MessagesService;
import lombok.Getter;
import org.springframework.stereotype.Component;
@@ -37,7 +36,7 @@ public class LastMessages implements Command {
}
@Override
- public String execute(User sender, ProtocolListener protocolListener, String command) {
+ public String execute(User sender, MessageListener protocolListener, String command) {
return "Last messages:\n"
+ getMessagesService().getMessages(getMessagesService().getAll(sender.getUid(), 0)).stream()
.sorted(Collections.reverseOrder())