Expose all currently known bots.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 9 Apr 2013 04:58:53 +0000 (06:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 9 Apr 2013 04:58:53 +0000 (06:58 +0200)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index c59c9d5..2691526 100644 (file)
@@ -85,6 +85,19 @@ public class Core extends AbstractIdleService {
        }
 
        //
+       // ACCESSORS
+       //
+
+       /**
+        * Returns all currently known bots.
+        *
+        * @return All currently known bots
+        */
+       public Collection<Bot> bots() {
+               return networkBots.values();
+       }
+
+       //
        // ACTIONS
        //