From a0ee94db3e1cb0e788a29e7cd53546837585b696 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 9 Apr 2013 06:58:53 +0200 Subject: [PATCH] Expose all currently known bots. --- src/main/java/net/pterodactylus/xdcc/core/Core.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index c59c9d5..2691526 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -85,6 +85,19 @@ public class Core extends AbstractIdleService { } // + // ACCESSORS + // + + /** + * Returns all currently known bots. + * + * @return All currently known bots + */ + public Collection bots() { + return networkBots.values(); + } + + // // ACTIONS // -- 2.7.4