summaryrefslogtreecommitdiff
path: root/netcore.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--netcore.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/netcore.cpp b/netcore.cpp
index 4341787..7082f9b 100644
--- a/netcore.cpp
+++ b/netcore.cpp
@@ -296,6 +296,12 @@ Window *NetCore::findWindow(int id) const {
}
+void NetCore::sendToClients(Packet::Type type, const Buffer &data) {
+ for (int i = 0; i < clientCount; i++)
+ if (clients[i]->isAuthed())
+ clients[i]->sendPacket(type, data);
+}
+
Client *Bouncer::constructClient() {