From 95c3dc2c69ad3183b8ba5a7457b7d45f264775d3 Mon Sep 17 00:00:00 2001 From: Dor Bivas Date: Wed, 4 Dec 2013 18:22:59 +0200 Subject: privmsg --- src/Client/ChatClient.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Client/ChatClient.java b/src/Client/ChatClient.java index 01863bc..b464e5f 100644 --- a/src/Client/ChatClient.java +++ b/src/Client/ChatClient.java @@ -47,7 +47,7 @@ public class ChatClient public void PRIVMSG (String line) { - runSendline(line); + runSendline("PRIVMSG " + "#chat-dor : " + line); } public boolean connect (String host, int port) @@ -92,8 +92,7 @@ public class ChatClient /** Tasks - * TODO: 2. When the user presses "send", a message will be sent to a channel: - * use PRIVMSG to channel #chat. + * * TODO: 4. But we do want to allow sending commands to the channel. A * message line that begins with the word "/QUOTE", will be sent as is -- cgit v1.2.3