Skip to content

Commit

Permalink
- disabled direct send at server level (necessary to avoid spamming …
Browse files Browse the repository at this point in the history
…clients)
  • Loading branch information
matsfunk committed May 8, 2019
1 parent 4fc9bea commit 9c7c0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified server/dist/OOCSI_server.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions server/src/nl/tue/id/oocsi/server/model/Server.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import java.util.regex.Pattern;

import nl.tue.id.oocsi.server.OOCSIServer;
import nl.tue.id.oocsi.server.protocol.Message;
import nl.tue.id.oocsi.server.protocol.Protocol;
import nl.tue.id.oocsi.server.services.PresenceTracker;
import nl.tue.id.oocsi.server.services.SocketClient;
Expand Down Expand Up @@ -39,6 +40,11 @@ public Server(PresenceTracker presence) {
protocol = new Protocol(this);
}

@Override
public void send(Message message) {
// disable direct send
}

/**
* retrieve client from client list
*
Expand Down

0 comments on commit 9c7c0a3

Please sign in to comment.