From: David ‘Bombe’ Roden Date: Tue, 9 Apr 2013 04:58:53 +0000 (+0200) Subject: Expose all currently known bots. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=a0ee94db3e1cb0e788a29e7cd53546837585b696;p=xudocci.git Expose all currently known bots. --- 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 //