Add method to modify peer note by host and port
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / quelaton / ModifyPeerNoteCommandImpl.java
index ecb4ed9..6e6dcc2 100644 (file)
@@ -55,6 +55,12 @@ public class ModifyPeerNoteCommandImpl implements ModifyPeerNoteCommand {
                return this::execute;
        }
 
+       @Override
+       public Executable<Boolean> byHostAndPort(String host, int port) {
+               nodeIdentifier.set(String.format("%s:%d", host, port));
+               return this::execute;
+       }
+
        private ListenableFuture<Boolean> execute() {
                if (darknetComment.get() == null) {
                        return Futures.immediateFuture(false);