Show name of reaction in email summary.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 7 Jan 2013 09:25:30 +0000 (10:25 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 7 Jan 2013 09:25:30 +0000 (10:25 +0100)
src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java

index f97002a..ab640c6 100644 (file)
@@ -72,7 +72,7 @@ public class NewTorrentTrigger implements Trigger {
         */
        @Override
        public Output output(Reaction reaction) {
-               DefaultOutput output = new DefaultOutput(String.format("Found %d new Torrent(s)!", torrentFiles.size()));
+               DefaultOutput output = new DefaultOutput(String.format("Found %d new Torrent(s) for “%s!”", torrentFiles.size(), reaction.name()));
                output.addText("text/plain", getPlainTextList(torrentFiles));
                output.addText("text/html", getHtmlTextList(torrentFiles));
                return output;