diff options
author | Anatoliy Sablin | 2017-11-06 16:54:00 +0300 |
---|---|---|
committer | Anatoliy Sablin | 2017-11-06 16:54:00 +0300 |
commit | bb2a47ea3c17f92c1d55d8b0d26cd26a880373d9 (patch) | |
tree | 29a8b9773671357948a1841c4a8663dd83b87e2d /juick-commands/src/main/java/com/juick/command/SubscribeUser.java | |
parent | 7fe4c65820d012d684405c56942b01da8e77bd23 (diff) |
Moved to message listener.
Diffstat (limited to 'juick-commands/src/main/java/com/juick/command/SubscribeUser.java')
-rw-r--r-- | juick-commands/src/main/java/com/juick/command/SubscribeUser.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/juick-commands/src/main/java/com/juick/command/SubscribeUser.java b/juick-commands/src/main/java/com/juick/command/SubscribeUser.java index f8204525..849a7c06 100644 --- a/juick-commands/src/main/java/com/juick/command/SubscribeUser.java +++ b/juick-commands/src/main/java/com/juick/command/SubscribeUser.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 SubscribeUser extends MultiArgsCommand { } @Override - protected String execute(User sender, ProtocolListener protocolListener, String... arguments) { + protected String execute(User sender, MessageListener protocolListener, String... arguments) { boolean subscribe = arguments[0].equalsIgnoreCase("s"); User toUser = getUserService().getUserByName(arguments[1]); if (toUser.getUid() > 0) { |