From: David ‘Bombe’ Roden Date: Mon, 7 Jan 2013 09:25:30 +0000 (+0100) Subject: Show name of reaction in email summary. X-Git-Tag: 0.1~49 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=26e850e216e9b84865341b5aedaf617aa64ff821;p=rhynodge.git Show name of reaction in email summary. --- diff --git a/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java b/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java index f97002a..ab640c6 100644 --- a/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java +++ b/src/main/java/net/pterodactylus/reactor/triggers/NewTorrentTrigger.java @@ -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;