aboutsummaryrefslogtreecommitdiff
path: root/juick-commands/src/main/java/com/juick/command/DeleteMessage.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/DeleteMessage.java')
-rw-r--r--juick-commands/src/main/java/com/juick/command/DeleteMessage.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/DeleteMessage.java b/juick-commands/src/main/java/com/juick/command/DeleteMessage.java
index ab46a28a..500e18b3 100644
--- a/juick-commands/src/main/java/com/juick/command/DeleteMessage.java
+++ b/juick-commands/src/main/java/com/juick/command/DeleteMessage.java
@@ -1,7 +1,6 @@
package com.juick.command;
import com.juick.User;
-import com.juick.server.protocol.ProtocolListener;
import com.juick.service.MessagesService;
import lombok.Getter;
import org.apache.commons.lang3.math.NumberUtils;
@@ -37,7 +36,7 @@ public class DeleteMessage extends MultiArgsCommand {
}
@Override
- protected String execute(User sender, ProtocolListener protocolListener, String... arguments) {
+ protected String execute(User sender, MessageListener protocolListener, String... arguments) {
int mid = NumberUtils.toInt(arguments[0], 0);
if (getMessagesService().deleteMessage(sender.getUid(), mid)) {
return String.format("Message %s deleted", mid);