From bab1f5e92dcc4e77ab1a9fa95a91b816d385b457 Mon Sep 17 00:00:00 2001 From: Dor Bivas Date: Sat, 18 Jan 2014 18:19:36 +0200 Subject: server: print privmsg to all clients * Connection.getClieont * Privmsg handler uses it to print the message to all connections * Unrelated: remove connection from list on shutdown. --- src/Server/Connection.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/Server/Connection.java') diff --git a/src/Server/Connection.java b/src/Server/Connection.java index 92869f1..cdb02b8 100644 --- a/src/Server/Connection.java +++ b/src/Server/Connection.java @@ -48,8 +48,16 @@ public class Connection extends Thread this.soc = soc; } + public Client getClient() + { + return this.client; + } + public void shutdown() { + + ChatServer.server.connectionRemove(this); + try { if (!soc.isClosed()) -- cgit v1.2.3