Skip to content
Browse files

Output converstaion to stdout

  • Loading branch information...
1 parent d7f6f11 commit 4ae154fdcca91bf53b224532aa256a8278acf449 @ry ry committed
Showing with 12 additions and 0 deletions.
  1. +12 −0 server.js
View
12 server.js
@@ -17,6 +17,18 @@ var channel = new function () {
, timestamp: (new Date()).getTime()
};
+ switch (type) {
+ case "msg":
+ puts("<" + nick + "> " + text);
+ break;
+ case "join":
+ puts(nick + " join");
+ break;
+ case "part":
+ puts(nick + " part");
+ break;
+ }
+
messages.push( m );
while (callbacks.length > 0) {

0 comments on commit 4ae154f

Please sign in to comment.
Something went wrong with that request. Please try again.