X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fsone%2Ffcp%2FFcpInterface.java;h=3a64bbf1c36b2281a8f0095a8652b8b94fd7b321;hb=6a426e5c3a82f3e63a8763d2a5ad57f311bc6065;hp=8841f638bd9ab88b0c6455c1eec76ad202304993;hpb=4ff19298a886f9aa09ef20309a833f9454284482;p=Sone.git diff --git a/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java b/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java index 8841f63..3a64bbf 100644 --- a/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java +++ b/src/main/java/net/pterodactylus/sone/fcp/FcpInterface.java @@ -25,7 +25,7 @@ import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.freenet.fcp.Command; import net.pterodactylus.sone.freenet.fcp.FcpException; import net.pterodactylus.sone.freenet.fcp.Command.AccessType; -import net.pterodactylus.sone.freenet.fcp.Command.Reply; +import net.pterodactylus.sone.freenet.fcp.Command.Response; import freenet.pluginmanager.FredPluginFCP; import freenet.pluginmanager.PluginNotFoundException; import freenet.pluginmanager.PluginReplySender; @@ -51,6 +51,7 @@ public class FcpInterface { */ public FcpInterface(Core core) { commands.put("Version", new VersionCommand()); + commands.put("GetLocalSones", new GetLocalSonesCommand(core)); commands.put("GetPostFeed", new GetPostFeedCommand(core)); } @@ -80,7 +81,7 @@ public class FcpInterface { return; } try { - Reply reply = command.execute(parameters, data, AccessType.values()[accessType]); + Response reply = command.execute(parameters, data, AccessType.values()[accessType]); SimpleFieldSet replyParameters = reply.getReplyParameters(); replyParameters.putOverwrite("Identifier", identifier); if (reply.hasData()) {