From 57f49f495d799a435b95d72021c004752628994b Mon Sep 17 00:00:00 2001 From: Treeki Date: Thu, 23 Jan 2014 23:09:38 +0100 Subject: sync user lists to clients, add support to python client, other assorted fixes --- netcore.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'netcore.cpp') 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() { -- cgit v1.2.3