summaryrefslogtreecommitdiff
path: root/netcore.cpp
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-01-23 23:09:38 +0100
committerTreeki <treeki@gmail.com>2014-01-23 23:09:38 +0100
commit57f49f495d799a435b95d72021c004752628994b (patch)
tree2e6ec9f3809362a0d8e1289cf90c3162a340cc16 /netcore.cpp
parent07e35b82c6d9ba075d42f8b0401d0616fbfc929c (diff)
downloadbounce4-57f49f495d799a435b95d72021c004752628994b.tar.gz
bounce4-57f49f495d799a435b95d72021c004752628994b.zip
sync user lists to clients, add support to python client, other assorted fixes
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() {