From fb697bd5fd643359347462d1150f24d3f8657f04 Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 5 Dec 2013 18:03:19 +0200 Subject: Update tasks --- src/Client/ChatClient.java | 17 +++++++++-------- src/Server/ChatServer.java | 1 + 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Client/ChatClient.java b/src/Client/ChatClient.java index 4d6567b..619965f 100644 --- a/src/Client/ChatClient.java +++ b/src/Client/ChatClient.java @@ -100,17 +100,18 @@ public class ChatClient /** Tasks - * 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 - * (except the word "/QUOTE") to the server. + * TODO: 5. When we get from the server a PRIVMSG, parse it and show who sent it. + * Print other messages (Server messages) differently. + * + * Example: + * + * Instead of: :tzafrir!~tzafrir@localhost PRIVMSG #the-chan :Hello There + * print: [#the-chan] Hello There * - * TODO: 5. Join a channel at startup: For any server besides our own we need to send + * TODO: 6. Join a channel at startup: For any server besides our own we need to send * a JOIN command (see how it is handled in the server). * - * TODO: 6. Don't allow sending text until we joined a channel. - * - * TODO: 7. When we get from the server a PRIVMSG, parse it and show who sent it. - * Print other messages (Server messages) differently. + * TODO: 7. Don't allow sending text until we joined a channel. */ /** Later diff --git a/src/Server/ChatServer.java b/src/Server/ChatServer.java index 0a384ba..4a21cfd 100644 --- a/src/Server/ChatServer.java +++ b/src/Server/ChatServer.java @@ -50,6 +50,7 @@ public class ChatServer * * Allow listening on a different port (from command-line?) * * Have a test server running on cohens.org.il * * Send requests to all channels (use list) + * * When passing a message (PRIVMSG) - inlcude the sender's nick. * * Keep channels up: PING occasionally * * Graphical interface for server */ -- cgit v1.2.3