X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Freactor%2Ftriggers%2FNewTorrentTrigger.java;h=f97002afbb91f93be226ddcda8babac928b0e19d;hb=44e9921d5af6f500180238b297d8b6b2bb069205;hp=19268e984e15d428353f5fabe22003edad8c8bf5;hpb=b29bc5d72c7dc2cea5103eefdbf38d033a89a6e1;p=rhynodge.git diff --git a/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java b/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java index 19268e9..f97002a 100644 --- a/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java +++ b/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java @@ -21,6 +21,7 @@ import static com.google.common.base.Preconditions.checkState; import java.util.List; +import net.pterodactylus.reactor.Reaction; import net.pterodactylus.reactor.State; import net.pterodactylus.reactor.Trigger; import net.pterodactylus.reactor.output.DefaultOutput; @@ -70,7 +71,7 @@ public class NewTorrentTrigger implements Trigger { * {@inheritDoc} */ @Override - public Output output() { + public Output output(Reaction reaction) { DefaultOutput output = new DefaultOutput(String.format("Found %d new Torrent(s)!", torrentFiles.size())); output.addText("text/plain", getPlainTextList(torrentFiles)); output.addText("text/html", getHtmlTextList(torrentFiles));