Permalink
Browse files

Reformatting for readability

  • Loading branch information...
1 parent b7850da commit 985cb4715ecc3b61a8f01ed728557e3ec7396352 @aaronblohowiak aaronblohowiak committed with ry Mar 14, 2010
Showing with 8 additions and 10 deletions.
  1. +8 −10 server.js
View
@@ -1,17 +1,17 @@
HOST = null; // localhost
PORT = 8001;
-var fu = require("./fu");
-var sys = require("sys");
-var url = require("url");
-var qs = require("querystring");
+var fu = require("./fu"),
+ sys = require("sys"),
+ url = require("url"),
+ qs = require("querystring");
-var MESSAGE_BACKLOG = 200;
-var SESSION_TIMEOUT = 60 * 1000;
+var MESSAGE_BACKLOG = 200,
+ SESSION_TIMEOUT = 60 * 1000;
var channel = new function () {
- var messages = [];
- var callbacks = [];
+ var messages = [],
+ callbacks = [];
this.appendMessage = function (nick, type, text) {
var m = { nick: nick
@@ -80,9 +80,7 @@ function createSession (nick) {
var session = {
nick: nick,
-
id: Math.floor(Math.random()*99999999999).toString(),
-
timestamp: new Date(),
poke: function () {

0 comments on commit 985cb47

Please sign in to comment.