diff options
author | Treeki <treeki@gmail.com> | 2014-01-23 23:09:38 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-01-23 23:09:38 +0100 |
commit | 57f49f495d799a435b95d72021c004752628994b (patch) | |
tree | 2e6ec9f3809362a0d8e1289cf90c3162a340cc16 /netcore.cpp | |
parent | 07e35b82c6d9ba075d42f8b0401d0616fbfc929c (diff) | |
download | bounce4-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.cpp | 6 |
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() { |