projects
/
xudocci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Expose all currently known bots.
[xudocci.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
xdcc
/
core
/
Core.java
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
(file)
--- 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<Bot> bots() {
+ return networkBots.values();
+ }
+
+ //
// ACTIONS
//