import net.pterodactylus.xdcc.core.event.DownloadFailed;
import net.pterodactylus.xdcc.core.event.DownloadFinished;
import net.pterodactylus.xdcc.core.event.DownloadStarted;
+import net.pterodactylus.xdcc.core.event.GenericMessage;
import net.pterodactylus.xdcc.core.event.MessageReceived;
import net.pterodactylus.xdcc.data.Bot;
import net.pterodactylus.xdcc.data.Download;
}
}
+ /**
+ * Writes a generic message to the console.
+ *
+ * @param genericMessage
+ * The generic message event
+ */
+ @Subscribe
+ public void genericMessage(GenericMessage genericMessage) {
+ try {
+ writeLine(genericMessage.message());
+ } catch (IOException ioe1) {
+ /* ignore. */
+ }
+ }
+
//
// PRIVATE METHODS
//